Ignore:
Timestamp:
Oct 18, 2011, 8:13:36 PM (14 years ago)
Author:
dmik
Message:

Add APIRET16/APIENTRY16 missing in GCC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/include/os2wrap.h

    r21709 r21712  
    1111#include <os2newapi.h>
    1212
    13 #if defined(__EMX__)
     13#if defined(__EMX__) && !defined(USE_OS2_TOOLKIT_HEADERS)
     14
    1415// be compatible with the toolkit
    1516#define OS2_INCLUDED
    1617#define __OS2_H__
    17 #endif
     18
     19// add missing declarations
     20typedef unsigned short APIRET16;
     21#define APIENTRY16 _Far16 _Pascal
     22
     23#endif // defined(__EMX__) && !defined(USE_OS2_TOOLKIT_HEADERS)
    1824
    1925// VAC: inline is a C++ keyword, must be translated to _Inline in C code
Note: See TracChangeset for help on using the changeset viewer.