basictypes.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // Copyright (C) 2000 Sean Cavanaugh
  2. // This file is licensed under the terms of the Lesser GNU Public License
  3. // (see LPGL.txt, or http://www.gnu.org/copyleft/lesser.txt)
  4. // AJM GNU
  5. #ifdef __GNUC__
  6. #define __int64 long long
  7. #endif
  8. #ifndef BASICTYPES_H__
  9. #define BASICTYPES_H__
  10. #if _MSC_VER > 1000
  11. #pragma once
  12. #endif /* _MSC_VER > 1000 */
  13. #if defined(_WIN32) || defined(SYSTEM_WIN32)
  14. #undef CHAR
  15. #undef BYTE
  16. #undef INT
  17. #undef UINT
  18. #undef INT8
  19. #undef UINT8
  20. #undef INT16
  21. #undef UINT16
  22. #undef INT32
  23. #undef UINT32
  24. #undef INT64
  25. #undef UINT64
  26. typedef char CHAR;
  27. typedef unsigned char BYTE;
  28. typedef signed int INT;
  29. typedef unsigned int UINT;
  30. typedef signed char INT8;
  31. typedef unsigned char UINT8;
  32. typedef signed short INT16;
  33. typedef unsigned short UINT16;
  34. typedef signed int INT32;
  35. typedef unsigned int UINT32;
  36. typedef signed __int64 INT64;
  37. typedef unsigned __int64 UINT64;
  38. #endif /* SYSTEM_WIN32 */
  39. #ifdef SYSTEM_POSIX
  40. #undef CHAR
  41. #undef BYTE
  42. #undef INT
  43. #undef UINT
  44. #undef INT8
  45. #undef UINT8
  46. #undef INT16
  47. #undef UINT16
  48. #undef INT32
  49. #undef UINT32
  50. #undef INT64
  51. #undef UINT64
  52. typedef char CHAR;
  53. typedef unsigned char BYTE;
  54. typedef signed int INT;
  55. typedef unsigned int UINT;
  56. typedef signed char INT8;
  57. typedef unsigned char UINT8;
  58. typedef signed short INT16;
  59. typedef unsigned short UINT16;
  60. typedef signed int INT32;
  61. typedef unsigned int UINT32;
  62. /* typedef __int64 INT64; */
  63. /* typedef unsigned __int64 UINT64; */
  64. #endif /* SYSTEM_POSIX */
  65. #endif /* BASICTYPES_H__ */