Advertisement
Shiny_

Untitled

Apr 19th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.88 KB | None | 0 0
  1.  
  2. #if defined FREEBSD && !defined __FreeBSD__
  3.   #define __FreeBSD__
  4. #endif
  5. #if defined LINUX || defined __FreeBSD__ || defined __OpenBSD__
  6.   #include <sclinux.h>
  7. #endif
  8.  
  9. #ifndef AMX_H_INCLUDED
  10. #define AMX_H_INCLUDED
  11.  
  12. #if defined HAVE_STDINT_H
  13.   #include <stdint.h>
  14. #else
  15.   #if defined __LCC__ || defined __DMC__ || defined LINUX
  16.     #if defined HAVE_INTTYPES_H
  17.       #include <inttypes.h>
  18.     #else
  19.       #include <stdint.h>
  20.     #endif
  21.   #elif !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  22.     /* The ISO C99 defines the int16_t and int_32t types. If the compiler got
  23.      * here, these types are probably undefined.
  24.      */
  25.     #if defined __MACH__
  26.       #include <ppc/types.h>
  27.       typedef unsigned short int  uint16_t;
  28.       typedef unsigned long int   uint32_t;
  29.     #elif defined __FreeBSD__
  30.       #include <inttypes.h>
  31.     #else
  32.       typedef short int           int16_t;
  33.       typedef unsigned short int  uint16_t;
  34.       #if defined SN_TARGET_PS2
  35.         typedef int               int32_t;
  36.         typedef unsigned int      uint32_t;
  37.       #else
  38.         typedef long int          int32_t;
  39.         typedef unsigned long int uint32_t;
  40.       #endif
  41.       #if defined __WIN32__ || defined _WIN32 || defined WIN32
  42.         typedef __int64           int64_t;
  43.         typedef unsigned __int64  uint64_t;
  44.         #define HAVE_I64
  45.       #elif defined __GNUC__
  46.         typedef long long         int64_t;
  47.         typedef unsigned long long uint64_t;
  48.         #define HAVE_I64
  49.       #endif
  50.     #endif
  51.   #endif
  52.   #define HAVE_STDINT_H
  53. #endif
  54. #if defined _LP64 || defined WIN64 || defined _WIN64
  55.   #if !defined __64BIT__
  56.     #define __64BIT__
  57.   #endif
  58. #endif
  59.  
  60. #if HAVE_ALLOCA_H
  61.   #include <alloca.h>
  62. #endif
  63. #if defined __WIN32__ || defined _WIN32 || defined WIN32 /* || defined __MSDOS__ */
  64.   #if !defined alloca
  65.     #define alloca(n)   _alloca(n)
  66.   #endif
  67. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement