[Zlib-devel] Is gcc always STDC?
Cosmin Truta
cosmin at cs.toronto.edu
Thu Jul 31 01:54:00 EDT 2003
Hi,
Regarding Charles Wilson's latest Cygwin patch, I would like to change
his suggestion
-#if (defined(MSDOS) || defined(_WINDOWS) || defined(WIN32)) && !defined(STDC)
+#if (defined(MSDOS) || defined(_WINDOWS) || defined(WIN32) || defined(__CYGWIN__)) && !defined(STDC)
# define STDC
#endif
into something like
#if defined(__STDC__) || defined(__cplusplus) || defined(__GNUC__)
# ifndef STDC
# define STDC
# endif
#endif
#if defined(MSDOS) || defined(_WINDOWS) || defined(WIN32)
# ifndef STDC
# define STDC
# endif
#endif
#if defined(__OS2__) || defined(__HOS_AIX__)
# ifndef STDC
# define STDC
# endif
#endif
Can we say that gcc is always STDC? If yes, then we shouldn't need
__CYGWIN__ (or __linux, etc.) and this should work even when ./configure
is not run.
Cosmin
More information about the Zlib-devel
mailing list