mytypes.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /****************************************************************************
  2. * *
  3. * Third Year Project *
  4. * *
  5. * An IBM PC Emulator *
  6. * For Unix and X Windows *
  7. * *
  8. * By David Hedley *
  9. * *
  10. * *
  11. * This program is Copyrighted. Consult the file COPYRIGHT for more details *
  12. * *
  13. ****************************************************************************/
  14. /* This is MYTYPES.H It contains definitions for the basic types to ease
  15. portability */
  16. #ifndef MYTYPES_H
  17. #define MYTYPES_H
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. typedef signed char INT8;
  22. typedef unsigned char UINT8;
  23. typedef signed short INT16;
  24. typedef unsigned short UINT16;
  25. #ifndef _WINDOWS
  26. typedef signed long INT32;
  27. typedef unsigned long UINT32;
  28. typedef UINT8 BYTE;
  29. typedef UINT16 WORD;
  30. typedef UINT32 DWORD;
  31. #else
  32. #include <windows.h>
  33. #define LITTLE_ENDIAN
  34. #define ALIGNED_ACCESS
  35. //#define BIGCASE
  36. #endif
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif