Changeset 2187 for trunk/src/emx/include/features.h
- Timestamp:
- Jul 3, 2005, 8:20:51 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/features.h
-
Property cvs2svn:cvs-rev
changed from
1.9
to1.10
r2186 r2187 43 43 _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; 44 44 if >=199309L, add IEEE Std 1003.1b-1993; 45 if >=199506L, add IEEE Std 1003.1c-1995 45 if >=199506L, add IEEE Std 1003.1c-1995; 46 if >=200112L, all of IEEE 1003.1-2004 46 47 _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if 47 48 Single Unix conformance is wanted, to 600 for the … … 56 57 _REENTRANT Select additionally reentrant object. 57 58 _THREAD_SAFE Same as _REENTRANT, often used by other systems. 59 _FORTIFY_SOURCE If set to numeric value > 0 additional security 60 measures are defined, according to level. 58 61 59 62 The `-ansi' switch to the GNU C compiler defines __STRICT_ANSI__. … … 84 87 __USE_GNU Define GNU extensions. 85 88 __USE_REENTRANT Define reentrant/thread-safe *_r functions. 89 __USE_FORTIFY_LEVEL Additional security measures used, according to level. 86 90 __FAVOR_BSD Favor 4.3BSD things in cases of conflict. 87 91 … … 116 120 #undef __USE_GNU 117 121 #undef __USE_REENTRANT 122 #undef __USE_FORTIFY_LEVEL 118 123 #undef __FAVOR_BSD 119 124 #undef __KERNEL_STRICT_NAMES … … 128 133 /* Always use ISO C things. */ 129 134 #define __USE_ANSI 1 135 136 /* Convenience macros to test the versions of glibc and gcc. 137 Use them like this: 138 #if __GNUC_PREREQ (2,8) 139 ... code requiring gcc 2.8 or later ... 140 #endif 141 Note - they won't work for gcc1 or glibc1, since the _MINOR macros 142 were not defined then. */ 143 #if defined __GNUC__ && defined __GNUC_MINOR__ 144 # define __GNUC_PREREQ(maj, min) \ 145 ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) 146 #else 147 # define __GNUC_PREREQ(maj, min) 0 148 #endif 130 149 131 150 … … 218 237 #endif 219 238 239 240 #if defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L /* bird: check if defined, -Wundef. */ 241 # define __USE_XOPEN2K 1 242 #endif 243 220 244 #ifdef _XOPEN_SOURCE 221 245 # define __USE_XOPEN 1 … … 262 286 # define __USE_BSD 1 263 287 /* bird: __USE_BSD == __BSD_VISIBLE, make sure it's defined. */ 264 # if 1 /*def __EMX__ */ 265 # undef __BSD_VISIBLE 266 # define __BSD_VISIBLE 1 267 # endif 288 # undef __BSD_VISIBLE 289 # define __BSD_VISIBLE 1 268 290 /* bird: end */ 269 291 #endif … … 283 305 #if defined _REENTRANT || defined _THREAD_SAFE 284 306 # define __USE_REENTRANT 1 307 #endif 308 309 #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && __GNUC_PREREQ (4, 1) && defined (__OPTIMIZE__) && __OPTIMIZE__ > 0 /* bird: check if defined, -Wundef. */ 310 # if _FORTIFY_SOURCE == 1 311 # define __USE_FORTIFY_LEVEL 1 312 # elif _FORTIFY_SOURCE > 1 313 # define __USE_FORTIFY_LEVEL 2 314 # endif 285 315 #endif 286 316 … … 305 335 these macros to test for features in specific releases. */ 306 336 #define __GLIBC__ 2 307 #define __GLIBC_MINOR__ 3337 #define __GLIBC_MINOR__ 4 308 338 #endif /*bird*/ 309 310 /* Convenience macros to test the versions of glibc and gcc.311 Use them like this:312 #if __GNUC_PREREQ (2,8)313 ... code requiring gcc 2.8 or later ...314 #endif315 Note - they won't work for gcc1 or glibc1, since the _MINOR macros316 were not defined then. */317 #if defined __GNUC__ && defined __GNUC_MINOR__318 # define __GNUC_PREREQ(maj, min) \319 ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))320 #else321 # define __GNUC_PREREQ(maj, min) 0322 #endif323 339 324 340 #define __GLIBC_PREREQ(maj, min) \ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.