Changeset 1649


Ignore:
Timestamp:
Nov 21, 2004, 6:00:07 PM (21 years ago)
Author:
bird
Message:

RC fixes.

Location:
trunk/src/emx/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/features.h

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r1648 r1649  
    1111 * @changed bird: Check if stuff is defined before accessing it in #if. Stops -Wundef
    1212 *                from bitching.
     13 * @changed bird: don't test on __EMX__ - RC & mozilla.
    1314 */
    1415
     
    117118#undef  __FAVOR_BSD
    118119#undef  __KERNEL_STRICT_NAMES
    119 #ifdef __EMX__                          /* bird */
    120120#undef  __USE_EMX                       /* bird */
    121 #endif                                  /* bird */
    122121
    123122/* Suppress kernel-name space pollution unless user expressedly asks
     
    144143# define _ISOC99_SOURCE 1
    145144/* bird: sorry, but this isn't causing huge exclusions for BSD or EMX headers. */
    146 #ifndef __EMX__                         /* bird */
     145#if 0 /*ndef __EMX__*/                  /* bird */
    147146# undef  _POSIX_SOURCE
    148147# define _POSIX_SOURCE  1
     
    158157# define _XOPEN_SOURCE_EXTENDED 1
    159158# undef  _LARGEFILE64_SOURCE
    160 #ifndef __EMX__ /* bird */
     159#if 0 /*def __EMX__*/ /* bird */
    161160# define _LARGEFILE64_SOURCE    1
    162161#endif          /* bird */
     
    165164# undef  _SVID_SOURCE
    166165# define _SVID_SOURCE   1
    167 # ifdef __EMX__
    168 #  define _EMX_SOURCE   1
    169 # endif
    170 #endif
     166# if 1 /*def __EMX__ */                 /* bird */
     167#  define _EMX_SOURCE   1               /* bird */
     168# endif                                 /* bird */
     169# endif
    171170
    172171/* If nothing (other than _GNU_SOURCE) is defined,
     
    189188#endif
    190189
    191 #ifndef __EMX__ /* bird: this messes up lot's of EMX legacy declarations. */
     190#if 0 /*ndef __EMX__*/ /* bird: this messes up lot's of EMX legacy declarations. */
    192191/* If none of the ANSI/POSIX macros are defined, use POSIX.1 and POSIX.2
    193192   (and IEEE Std 1003.1b-1993 unless _XOPEN_SOURCE is defined).  */
     
    242241#endif
    243242
    244 #ifndef __EMX__ /* bird */
     243#if 0 /*ndef __EMX__*/ /* bird */
    245244#ifdef _LARGEFILE64_SOURCE
    246245# define __USE_LARGEFILE64      1
     
    248247#endif /* bird */
    249248
    250 #ifndef __EMX__ /* bird */
     249#if 0 /*ndef __EMX__*/ /* bird */
    251250#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64
    252251# define __USE_FILE_OFFSET64    1
     
    263262# define __USE_BSD      1
    264263/* bird: __USE_BSD == __BSD_VISIBLE, make sure it's defined. */
    265 # ifdef __EMX__
     264# if 1 /*def __EMX__ */
    266265#  undef __BSD_VISIBLE
    267266#  define __BSD_VISIBLE  1
     
    278277#endif
    279278
    280 #if defined(__EMX__) && defined(_EMX_SOURCE) /* bird */
     279#if defined(_EMX_SOURCE)                /* bird */
    281280# define __USE_EMX      1               /* bird */
    282281#endif                                  /* bird */
     
    293292#define __STDC_ISO_10646__              200009L
    294293
    295 #ifndef __EMX__ /*bird: we're not GLIBC */
     294#if 0 /*ndef __EMX__*/ /*bird: we're not GLIBC */
    296295/* This macro indicates that the installed library is the GNU C Library.
    297296   For historic reasons the value now is 6 and this will stay from now
     
    344343# if defined __USE_FILE_OFFSET64 && !defined __REDIRECT
    345344#  define __USE_LARGEFILE       1
    346 #ifndef __EMX__ /* bird */
     345#if 0 /*ndef __EMX__*/ /* bird */
    347346#  define __USE_LARGEFILE64     1
    348347#endif          /* bird */
     
    358357
    359358
    360 #ifndef __EMX__ /* bird */
     359#if 0 /*ndef __EMX__*/ /* bird */
    361360/* This is here only because every header file already includes this one.
    362361   Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
  • trunk/src/emx/include/sys/gnu/cdefs.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1648 r1649  
    2020 * GLIBC v2.3.2
    2121 * @changed bird: #ifndef'ed out a few clashes with the BSD cdefs.h.
     22 * @changed bird: Workaround for RC & mozilla.
    2223 */
    2324
     
    4142#undef  __PMT
    4243
    43 #ifdef __GNUC__
     44#if defined __GNUC__ || defined RC_INVOKED /* bird: RC hacks */
    4445
    4546/* GCC can always grok prototypes.  For C++ programs we add throw()
Note: See TracChangeset for help on using the changeset viewer.