Ignore:
Timestamp:
Dec 3, 2004, 5:44:50 AM (21 years ago)
Author:
bird
Message:

BSD cleanup. rand() and stuff.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1692 r1693  
    1010#include <stddef.h>
    1111
    12 #undef alloca
    13 
    1412__BEGIN_DECLS
    15 void *alloca(size_t);
     13#if __GNUC__ >= 2 || defined(__INTEL_COMPILER)
     14#undef  alloca  /* some GNU bits try to get cute and define this on their own */
     15#define alloca(sz) __builtin_alloca(sz)
     16#elif defined(lint)
     17void    *alloca(size_t);
     18#endif
    1619__END_DECLS
    1720
    18 #if !defined (alloca)
    19 #define alloca(x) __builtin_alloca(x)
    20 #endif
    2121
    2222#endif /* not _ALLOCA_H */
Note: See TracChangeset for help on using the changeset viewer.