mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Include NSString functions only if compiling in Objective-C mode
(using "#ifdef __OBJC__"). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1549 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5ede2d85a1
commit
28574209da
1 changed files with 4 additions and 0 deletions
|
@ -26,7 +26,9 @@
|
|||
/**** Included Headers *******************************************************/
|
||||
|
||||
#include <objc/objc.h>
|
||||
#ifdef __OBJC__
|
||||
#include <Foundation/NSString.h>
|
||||
#endif
|
||||
|
||||
/**** Type, Constant, and Macro Definitions **********************************/
|
||||
|
||||
|
@ -204,6 +206,7 @@ NSIntersectsRect(NSRect aRect, NSRect bRect);
|
|||
|
||||
/** Get a String Representation... **/
|
||||
|
||||
#ifdef __OBJC__
|
||||
/* Returns an NSString of the form "{x=X; y=Y}", where
|
||||
* X and Y are the x- and y-coordinates of APOINT, respectively. */
|
||||
extern NSString *
|
||||
|
@ -219,5 +222,6 @@ NSStringFromRect(NSRect aRect);
|
|||
* W and H are the width and height of ASIZE, respectively. */
|
||||
extern NSString *
|
||||
NSStringFromSize(NSSize aSize);
|
||||
#endif /* __OBJC__ */
|
||||
|
||||
#endif /* __NSGeometry_h_GNUSTEP_BASE_INCLUDE */
|
||||
|
|
Loading…
Reference in a new issue