Changeset 1065


Ignore:
Timestamp:
Jan 25, 2004, 5:42:49 PM (22 years ago)
Author:
bird
Message:

Initial hacking.

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.1 to 1.2
    r1064 r1065  
    1616   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    1717   02111-1307 USA.  */
     18
     19/** @file
     20 * GLIBC v2.3.2
     21 * @changed bird: don't define *LARGEFILE64*, but make sure to indicate that
     22 *                off_t is 64bits.
     23 */
    1824
    1925#ifndef _FEATURES_H
     
    135141# define _XOPEN_SOURCE_EXTENDED 1
    136142# undef  _LARGEFILE64_SOURCE
     143#ifndef __EMX__ /* bird */
    137144# define _LARGEFILE64_SOURCE    1
     145#endif          /* bird */
    138146# undef  _BSD_SOURCE
    139147# define _BSD_SOURCE    1
     
    212220#endif
    213221
     222#ifndef __EMX__ /* bird */
    214223#ifdef _LARGEFILE64_SOURCE
    215224# define __USE_LARGEFILE64      1
    216225#endif
    217 
     226#endif /* bird */
     227
     228#ifndef __EMX__ /* bird */
    218229#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64
    219230# define __USE_FILE_OFFSET64    1
    220231#endif
     232#else
     233# define __USE_FILE_OFFSET64    1
     234#endif          /* bird */
    221235
    222236#if defined _BSD_SOURCE || defined _SVID_SOURCE
     
    296310# if defined __USE_FILE_OFFSET64 && !defined __REDIRECT
    297311#  define __USE_LARGEFILE       1
     312#ifndef __EMX__ /* bird */
    298313#  define __USE_LARGEFILE64     1
     314#endif          /* bird */
    299315# endif
    300316
     
    308324
    309325
     326#ifndef __EMX__ /* bird */
    310327/* This is here only because every header file already includes this one.
    311328   Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
     
    313330   that will always return failure (and set errno to ENOSYS).  */
    314331#include <gnu/stubs.h>
     332#endif          /* bird */
    315333
    316334
  • trunk/src/emx/include/sys/gnu/cdefs.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1064 r1065  
    1616   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    1717   02111-1307 USA.  */
     18
     19/**
     20 * GLIBC v2.3.2
     21 * @changed bird: #ifndef'ed out a few clashes with the BSD cdefs.h.
     22 */
    1823
    1924#ifndef _SYS_CDEFS_H
     
    6772/* For these things, GCC behaves the ANSI way normally,
    6873   and the non-ANSI way under -traditional.  */
    69 
     74#ifndef __CONCAT                        /* bird */
    7075#define __CONCAT(x,y)   x ## y
     76#endif                                  /* bird */
     77#ifndef __CONCAT                        /* bird */
    7178#define __STRING(x)     #x
     79#endif                                  /* bird */
    7280
    7381/* This is not a typedef so `const __ptr_t' does the right thing.  */
     
    7785
    7886/* C++ needs to know that types and declarations are C, not C++.  */
     87#if !defined(__BEGIN_DECLS) && !defined(__END_DECLS) /* bird */
    7988#ifdef  __cplusplus
    8089# define __BEGIN_DECLS  extern "C" {
     
    8493# define __END_DECLS
    8594#endif
    86 
     95#endif                                  /* bird */
    8796
    8897/* The standard library needs the functions from the ISO C90 standard
Note: See TracChangeset for help on using the changeset viewer.