wstypes.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /****************************************************************************\
  19. * C O N F I D E N T I A L --- W E S T W O O D S T U D I O S *
  20. ******************************************************************************
  21. Project Name:
  22. File Name : wtypes.h
  23. Author : Neal Kettler
  24. Start Date : June 3, 1997
  25. Last Update : June 17, 1997
  26. Standard type definitions for the sake of portability and readability.
  27. \***************************************************************************/
  28. #ifndef WTYPES_HEADER
  29. #define WTYPES_HEADER
  30. #ifndef TRUE
  31. #define TRUE 1
  32. #endif
  33. #ifndef FALSE
  34. #define FALSE 0
  35. #endif
  36. #ifndef MIN
  37. #define MIN(x,y) (((x)<(y))?(x):(y))
  38. #endif
  39. #ifndef MAX
  40. #define MAX(x,y) (((x)>(y))?(x):(y))
  41. #endif
  42. #ifndef NULL
  43. #define NULL 0
  44. #endif
  45. //These are used for readability purposes mostly, when a method takes a
  46. // pointer or reference these help specify what will happen to the data
  47. // that is sent in.
  48. #define IN
  49. #define OUT
  50. #define INOUT
  51. typedef char bit8;
  52. typedef char sint8;
  53. typedef unsigned char uint8;
  54. typedef signed short int sint16;
  55. typedef unsigned short int uint16;
  56. typedef signed int sint32;
  57. typedef unsigned int uint32;
  58. #define MAX_BIT8 0x1
  59. #define MAX_UINT32 0xFFFFFFFF
  60. #define MAX_UINT16 0xFFFF
  61. #define MAX_UINT8 0xFF
  62. #define MAX_SINT32 0x7FFFFFFF
  63. #define MAX_SINT16 0x7FFF
  64. #define MAX_SINT8 0x7F
  65. #ifdef _WIN32
  66. #define strncasecmp _strnicmp
  67. #define strcasecmp _stricmp
  68. #endif
  69. #endif