types.h 738 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef _WONX_SYS_TYPES_H_
  2. #define _WONX_SYS_TYPES_H_
  3. #include "system_configure.h"
  4. #include <stdlib.h> /* for NULL definition */
  5. #ifndef _WONX_
  6. #define _WONX_
  7. #endif
  8. #ifdef TYPEDEF_USHORT
  9. typedef unsigned short int ushort;
  10. #endif
  11. #ifdef TYPEDEF_ULONG
  12. typedef unsigned long int ulong;
  13. #endif
  14. typedef unsigned char BYTE;
  15. typedef unsigned short int WORD;
  16. typedef unsigned long int DWORD;
  17. typedef int BOOL;
  18. #ifndef far
  19. #define far /* None */
  20. #endif
  21. #ifndef near
  22. #define near /* None */
  23. #endif
  24. #ifndef TRUE
  25. #define TRUE 1
  26. #endif
  27. #ifndef FALSE
  28. #define FALSE 0
  29. #endif
  30. typedef struct {
  31. BYTE year;
  32. BYTE month;
  33. BYTE date;
  34. BYTE day_of_week;
  35. BYTE hour;
  36. BYTE minute;
  37. BYTE second;
  38. } datetime_t;
  39. #endif