Ignore:
Timestamp:
Jul 29, 2017, 4:48:45 PM (8 years ago)
Author:
dmik
Message:

Fix os2safe.h warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/os2wrap.h

    r21916 r22139  
    77#ifndef USE_OS2_TOOLKIT_HEADERS
    88
    9 // be compatible with the toolkit
     9// add missing declarations
     10typedef unsigned short APIRET16;
     11#define APIENTRY16 _Far16 _Pascal
     12
     13#define INCL_LONGLONG_STRUCTS
     14
     15#else // ifndef USE_OS2_TOOLKIT_HEADERS
     16
     17#undef _Pascal
     18#define _Pascal _System // For Vio/Kbd/Mou
     19
     20#endif // ifndef USE_OS2_TOOLKIT_HEADERS
     21
     22#endif // ifdef __EMX__
     23
     24#include <os2.h>
     25
     26#ifdef __EMX__
     27#ifndef USE_OS2_TOOLKIT_HEADERS
     28// be compatible with the toolkit (note we do it after os2.h inclusion to avoid
     29// os2safe.h barfing)
    1030#define OS2_INCLUDED
    1131#define OS2DEF_INCLUDED
    1232#define WIN_INCLUDED
    1333#define __OS2_H__
    14 
    15 // add missing declarations
    16 typedef unsigned short APIRET16;
    17 #define APIENTRY16 _Far16 _Pascal
    18 
    19 #define INCL_LONGLONG_STRUCTS
    20 
    21 #else // ifndef USE_OS2_TOOLKIT_HEADERS
    22 
    23 #undef _Pascal
    24 #define _Pascal _System // For Vio/Kbd/Mou
    25 
    26 #endif // ifndef USE_OS2_TOOLKIT_HEADERS
    27 
    28 #endif // ifdef __EMX__
    29 
    30 #include <os2.h>
     34#endif
     35#endif
     36
    3137#include <os2sel.h>
    3238#include <os2newapi.h>
Note: See TracChangeset for help on using the changeset viewer.