Update of /cvsroot/naviserver/naviserver/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11902/include
Modified Files:
nscheck.h
Log Message:
Define __GNUC_PREREQ to false if not using GCC compiler.
This will automatically disable all GCC-related optimizations.
Index: nscheck.h
===================================================================
RCS file: /cvsroot/naviserver/naviserver/include/nscheck.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** nscheck.h 24 Jun 2005 08:35:14 -0000 1.3
--- nscheck.h 27 Jun 2005 17:50:18 -0000 1.4
***************
*** 39,48 ****
#define NSCHECK_H
- #ifndef _WIN32
-
#undef __GNUC_PREREQ
#if defined __GNUC__ && defined __GNUC_MINOR__
# define __GNUC_PREREQ(maj, min) \
((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
#endif
--- 39,48 ----
#define NSCHECK_H
#undef __GNUC_PREREQ
#if defined __GNUC__ && defined __GNUC_MINOR__
# define __GNUC_PREREQ(maj, min) \
((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
+ #else
+ # define __GNUC_PREREQ(maj, min) (0)
#endif
***************
*** 110,132 ****
#endif
- #else /* _WIN32 */
-
- # define NS_GNUC_SENTINEL
- # define NS_GNUC_NONNULL
- # define NS_GNUC_WARN_UNUSED_RESULT
- # define NS_GNUC_MAYALIAS
- # define NS_GNUC_DEPRECATED
- # define NS_GNUC_USED
- # define NS_GNUC_FORMAT(m)
- # define NS_GNUC_UNUSED
- # define NS_GNUC_NORETURN
- # define NS_GNUC_PRINTF(fmtarg, firstvararg)
- # define NS_GNUC_SCANF(fmtarg, firstvararg)
- # define NS_GNUC_MALLOC
- # define NS_GNUC_PURE
- # define NS_GNUC_CONST
-
- #endif /* _WIN32 */
-
/*
* Ensure static RCSID strings aren't optimised away.
--- 110,113 ----
|