Advertisement
Shiny_

1

Nov 11th, 2023 (edited)
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.50 KB | None | 0 0
  1. #if defined HAVE_STDINT_H
  2.   #include <stdint.h>
  3. #else
  4.   #if defined __LCC__ || defined __DMC__ || defined __LINUX__ || (defined __WATCOMC__ && __WATCOMC__ >= 1200)
  5.     #if defined HAVE_INTTYPES_H
  6.       #include <inttypes.h>
  7.     #else
  8.       #include <stdint.h>
  9.     #endif
  10.   #elif !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  11.     /* The ISO C99 defines the int16_t and int_32t types. If the compiler got
  12.      * here, these types are probably undefined.
  13.      */
  14.     #if defined __MACH__
  15.       #include <ppc/types.h>
  16.       typedef unsigned short int  uint16_t;
  17.       typedef unsigned long int   uint32_t;
  18.     #elif defined __FreeBSD__
  19.       #include <inttypes.h>
  20.     #else
  21.       typedef short int           int16_t;
  22.       typedef unsigned short int  uint16_t;
  23.       #if defined SN_TARGET_PS2
  24.         typedef int               int32_t;
  25.         typedef unsigned int      uint32_t;
  26.       #else
  27.         typedef long int          int32_t;
  28.         typedef unsigned long int uint32_t;
  29.       #endif
  30.       #if defined __WIN32__ || defined _WIN32 || defined WIN32
  31.         typedef __int64           int64_t;
  32.         typedef unsigned __int64  uint64_t;
  33.         #define HAVE_I64
  34.       #elif defined __GNUC__
  35.         typedef long long         int64_t;
  36.         typedef unsigned long long uint64_t;
  37.         #define HAVE_I64
  38.       #endif
  39.     #endif
  40.   #endif
  41.   #define HAVE_STDINT_H
  42. #endif
  43. #if defined _LP64 || defined WIN64 || defined _WIN64
  44.   #if !defined __64BIT__
  45.     #define __64BIT__
  46.   #endif
  47. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement