Changeset 6102 for trunk/include/odin.h


Ignore:
Timestamp:
Jun 26, 2001, 12:55:07 AM (24 years ago)
Author:
bird
Message:

Inline definitions. EMX updated and more like working. attribute_ for none GNU compilers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/odin.h

    r5925 r6102  
    5353  #define SYSTEM    _System
    5454  #define PASCAL    __stdcall
     55  #define INLINE    inline              /* is this allowed for C too? */
    5556  #define UNALIGNED
     57  #define __attribute__(x)
    5658
    5759//MN: For some strange reason Watcom doesn't define these for C++!
     
    6668/* ---------- GCC/EMX ---------- */
    6769#ifdef __GNUC__
     70  #if defined(__GNUC__) && (__GNUC__ <= 2) && (__GNUC_MINOR__ < 7)
     71    #error You need gcc >= 2.7 to build Odin32
     72  #endif
     73  #if !defined(__stdcall__)             /* this is also defined in windef.h if !defined(WIN32OS2) */
     74    #define __stdcall __attribute__((__stdcall__))
     75    #define __cdecl   __attribute__((__cdecl__))
     76  #endif
    6877  #define CDECL     _cdecl
    6978  #define EXPORT    _export
     
    7281  #define SYSTEM    __stdcall
    7382  #define PASCAL    __stdcall
     83  #define INLINE    __inline__
    7484  #define UNALIGNED
    7585  #define NONAMELESSUNION
     
    7989/* ---------- VAC ---------- */
    8090#if (defined(__IBMCPP__) || defined(__IBMC__))
     91
    8192  #define CDECL     __cdecl
    8293  #define EXPORT    _Export
     
    8697  #define PASCAL    __stdcall
    8798  #define UNALIGNED
    88   #define __inline__ inline
     99  #ifndef __cplusplus
     100    #define INLINE  _Inline
     101    #define inline  INLINE
     102  #else
     103    #define INLINE  inline
     104  #endif
     105  #define __inline__ INLINE
     106  #define __attribute__(x)
     107
    89108
    90109#ifndef RC_INVOKED
     
    107126#ifdef RC_INVOKED
    108127  //SvL: wrc chokes on calling conventions....
    109   #define CDECL     
    110   #define EXPORT   
    111   #define WIN32API 
    112   #define WINAPI   
    113   #define CALLBACK   
    114   #define SYSTEM   
    115   #define PASCAL   
     128  #define CDECL
     129  #define EXPORT
     130  #define WIN32API
     131  #define WINAPI
     132  #define CALLBACK
     133  #define SYSTEM
     134  #define PASCAL
    116135  #define UNALIGNED
    117136  #define __cdecl
    118137  #define _System
    119   #define __inline__
     138  #define __inline__
     139  #define INLINE
    120140#else
    121141/* ---------- ??? ---------- */
Note: See TracChangeset for help on using the changeset viewer.