gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstep (progress ...) (fwd)


From: Nicola Pero
Subject: Re: GNUstep (progress ...) (fwd)
Date: Sat, 24 Feb 2001 15:35:15 +0100 (CET)

Hi Richard, 

Matthias' mail follows at the end.  First my comments - according to GNU
libc's /usr/include/features.h,

/* These are defined by the user (or the compiler)
   to specify the desired environment:

   __STRICT_ANSI__      ISO Standard C.
   _ISOC99_SOURCE       Extensions to ISO C 89 from ISO C 99.
   _ISOC9X_SOURCE       Similar, kept for compatibility.
   _POSIX_SOURCE        IEEE Std 1003.1.
   _POSIX_C_SOURCE      If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
                        if >=199309L, add IEEE Std 1003.1b-1993;
                        if >=199506L, add IEEE Std 1003.1c-1995
   _XOPEN_SOURCE        Includes POSIX and XPG things.  Set to 500 if
                        Single Unix conformance is wanted.
   _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
   _LARGEFILE_SOURCE    Some more functions for correct standard I/O.
   _LARGEFILE64_SOURCE  Additional functionality from LFS for large files.
   _FILE_OFFSET_BITS=N  Select default filesystem interface.
   _BSD_SOURCE          ISO C, POSIX, and 4.3BSD things.
   _SVID_SOURCE         ISO C, POSIX, and SVID things.
   _GNU_SOURCE          All of the above, plus GNU extensions.
   _REENTRANT           Select additionally reentrant object.
   _THREAD_SAFE         Same as _REENTRANT, often used by other systems.

   The `-ansi' switch to the GNU C compiler defines __STRICT_ANSI__.
   If none of these are defined, the default is all but _GNU_SOURCE.
   If more than one of these are defined, they accumulate.
   For example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE
   together give you ISO C, 1003.1, and 1003.2, but nothing else.

*/

I think at this point we could simply pass -D_GNU_SOURCE to the compiler. 
Only I suppose that if we need that, it means we are using something which
is not going to be available on non-GNU C libraries.  Don't know if we
care - do we ?

Here is the mail from Matthias - 

---------- Forwarded message ----------
Date: Sat, 24 Feb 2001 10:13:26 +0100 (MET)
From: Matthias Klose <address@hidden>
To: Nicola Pero <address@hidden>
Subject: Re: GNUstep (progress ...)

_GNU_SOURCE needs to be defined before the first system header is
included.

--- gnustep-base-0.9.1.010224.orig/Source/GSLocale.m
+++ gnustep-base-0.9.1.010224/Source/GSLocale.m
@@ -21,6 +21,12 @@
    License along with this library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
 */
+/*
+ * Define _GNU_SOURCE to get YESSTR and NOSTR in glibc-2.2.2
+ */
+#ifndef        _GNU_SOURCE
+#define        _GNU_SOURCE
+#endif
 #include <config.h>
 #include <base/GSLocale.h>
 #include <Foundation/NSDictionary.h>
@@ -30,12 +36,6 @@
 
 #include <locale.h>
 #ifdef HAVE_LANGINFO_H
-/*
- * Define _GNU_SOURCE to get YESSTR and NOSTR in glibc-2.2.2
- */
-#ifndef        _GNU_SOURCE
-#define        _GNU_SOURCE
-#endif
 #include <langinfo.h>
 #endif
 #include <Foundation/NSUserDefaults.h>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]