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:
Andrew McCallum 1996-05-27 13:53:05 +00:00
parent 5ede2d85a1
commit 28574209da

View file

@ -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 */