amcomdef.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. #ifndef __AMCOMDEF_H__
  2. #define __AMCOMDEF_H__
  3. #if defined(WINCE) || defined(WIN32)
  4. #ifndef _WCHAR_T_DEFINED
  5. typedef unsigned short wchar_t;
  6. #define _WCHAR_T_DEFINED
  7. #endif//#ifndef _WCHAR_T_DEFINED
  8. #elif (defined(EKA2) && defined(__GCCE__))
  9. #ifndef _STDDEF_H_
  10. #ifndef __cplusplus
  11. typedef unsigned short wchar_t;
  12. #define __wchar_t_defined
  13. #endif
  14. #endif
  15. #elif defined(__GCCE__) || defined(__GCC32__)
  16. #ifndef _STDDEF_H_
  17. typedef unsigned short wchar_t;
  18. #endif
  19. #endif//#if defined(WINCE)
  20. #if defined(__GCC32__) || defined(__GCCE__) || defined(WINCE) || defined(WIN32)
  21. typedef wchar_t MWChar;
  22. #else
  23. typedef unsigned short MWChar;
  24. #endif
  25. typedef long MLong;
  26. typedef float MFloat;
  27. typedef double MDouble;
  28. typedef unsigned char MByte;
  29. typedef unsigned short MWord;
  30. typedef unsigned int MDWord;
  31. typedef void* MHandle;
  32. typedef char MChar;
  33. typedef long MBool;
  34. typedef void MVoid;
  35. typedef void* MPVoid;
  36. typedef char* MPChar;
  37. typedef short MShort;
  38. typedef const char* MPCChar;
  39. typedef MLong MRESULT;
  40. typedef MDWord MCOLORREF;
  41. typedef signed char MInt8;
  42. typedef unsigned char MUInt8;
  43. typedef signed short MInt16;
  44. typedef unsigned short MUInt16;
  45. typedef signed int MInt32;
  46. typedef unsigned int MUInt32;
  47. #if !defined(M_UNSUPPORT64)
  48. #if defined(_MSC_VER)
  49. typedef signed __int64 MInt64;
  50. typedef unsigned __int64 MUInt64;
  51. #else
  52. typedef signed long long MInt64;
  53. typedef unsigned long long MUInt64;
  54. #endif
  55. #endif
  56. typedef struct __tag_rect
  57. {
  58. MInt32 left;
  59. MInt32 top;
  60. MInt32 right;
  61. MInt32 bottom;
  62. } MRECT, *PMRECT;
  63. typedef struct __tag_point
  64. {
  65. MInt32 x;
  66. MInt32 y;
  67. } MPOINT, *PMPOINT;
  68. typedef struct __tag_pointf
  69. {
  70. MFloat x;
  71. MFloat y;
  72. } MPOINTF, *PMPOINTF;
  73. #define MNull 0
  74. #define MFalse 0
  75. #define MTrue 1
  76. #ifndef MAX_PATH
  77. #define MAX_PATH 256
  78. #endif
  79. #ifdef M_WIDE_CHAR
  80. #define MTChar MWChar
  81. #else
  82. #define MTChar MChar
  83. #endif
  84. #endif