Changeset 21421 for trunk/include


Ignore:
Timestamp:
Aug 17, 2010, 11:48:28 PM (15 years ago)
Author:
dmik
Message:

Make sure basetsd.h is eventually included by windows.h (for compatibility with current Windows SDK versions).

Location:
trunk/include/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/basetsd.h

    r21360 r21421  
    5656#  endif
    5757#  ifndef __int64
    58 #    define __int64 long long
     58#    if defined(__WIN32OS2__) && (__IBMC__ < 400) && (__IBMCPP__ < 360) && !defined(__WATCOMC__) && !defined(__EMX__)
     59#      define __int64 double
     60#    elif !defined(__WIN32OS2__) || defined(__EMX__)
     61#      define __int64 long long
     62#    endif
    5963#  endif
    6064#endif /* !defined(_MSC_VER) */
     
    8791typedef unsigned __int64 ULONG64, *PULONG64;
    8892typedef unsigned __int64 DWORD64, *PDWORD64;
     93#elif defined(__WIN32OS2__) && (__IBMC__ < 400) && (__IBMCPP__ < 360) && !defined(__WATCOMC__) && !defined(__EMX__)
     94typedef __int64 INT64, *PINT64;
     95typedef __int64 UINT64, *PUINT64;
     96typedef __int64 LONG64, *PLONG64;
     97typedef __int64 ULONG64, *PULONG64;
     98typedef __int64 DWORD64, *PDWORD64;
    8999#else
    90100typedef signed __int64   DECLSPEC_ALIGN(8) INT64, *PINT64;
  • trunk/include/win/windef.h

    r21397 r21421  
    1818#include <wchar.h>
    1919#endif
     20
     21#include <basetsd.h>
    2022
    2123#ifdef __cplusplus
     
    220222typedef void            VOID;
    221223#endif
    222 typedef short           INT16;
    223 typedef unsigned short  UINT16;
    224224typedef int             INT;
    225 
    226 #ifndef INT_PTR_D
    227 #define INT_PTR_D
    228 typedef int             INT_PTR, *PINT_PTR;
    229 #endif
    230225typedef unsigned int    UINT;
    231 typedef signed int      INT32;
    232 #ifndef UINT_PTR_D
    233 #define UINT_PTR_D
    234 typedef unsigned int    UINT_PTR, *PUINT_PTR;
    235 #endif
    236226typedef unsigned short  WORD;
    237227typedef unsigned long   DWORD;
    238 #ifndef DWORD_PTR_D
    239 #define DWORD_PTR_D
    240 typedef unsigned long   DWORD_PTR, *PDWORD_PTR;
    241 #endif
    242228typedef unsigned long   ULONG;
    243229typedef unsigned char   BYTE;
     
    260246#endif
    261247typedef double          DATE;
    262 typedef long            LONG_PTR;
    263 typedef unsigned long   ULONG_PTR;
    264248typedef double          DOUBLE;
    265249#if (__IBMC__ < 360) && (__IBMCPP__ < 360) && !defined (__EMX__)
     
    325309typedef DWORD           LCTYPE;
    326310typedef float           FLOAT;
    327 #ifdef __WIN32OS2__
    328 #if (__IBMC__ < 400) && (__IBMCPP__ < 360) && !defined(__WATCOMC__) && !defined(__EMX__)
    329 typedef double          __int64;
    330 #elif defined (__EMX__)
    331 typedef long long       __int64;
    332 #endif
    333 #else
    334 typedef long long       __int64;
    335 #endif
    336311
    337312/* Pointers types. These are the same for emulator and library. */
Note: See TracChangeset for help on using the changeset viewer.