PreRTS.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*
  2. ** Command & Conquer Generals Zero Hour(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. // //
  20. // (c) 2001-2003 Electronic Arts Inc. //
  21. // //
  22. ////////////////////////////////////////////////////////////////////////////////
  23. // This file contains all the header files that shouldn't change frequently.
  24. // Be careful what you stick in here, because putting files that change often in here will
  25. // tend to cheese people's goats.
  26. #ifndef __PRERTS_H__
  27. #define __PRERTS_H__
  28. //-----------------------------------------------------------------------------
  29. // srj sez: this must come first, first, first.
  30. #define _STLP_USE_NEWALLOC 1
  31. //#define _STLP_USE_CUSTOM_NEWALLOC STLSpecialAlloc
  32. class STLSpecialAlloc;
  33. // We actually don't use Windows for much other than timeGetTime, but it was included in 40
  34. // different .cpp files, so I bit the bullet and included it here.
  35. // PLEASE DO NOT ABUSE WINDOWS OR IT WILL BE REMOVED ENTIRELY. :-)
  36. //--------------------------------------------------------------------------------- System Includes
  37. #define WIN32_LEAN_AND_MEAN
  38. #include <atlbase.h>
  39. #include <windows.h>
  40. #include <assert.h>
  41. #include <ctype.h>
  42. #include <direct.h>
  43. #include <EXCPT.H>
  44. #include <float.h>
  45. #include <fstream.h>
  46. #include <imagehlp.h>
  47. #include <io.h>
  48. #include <limits.h>
  49. #include <lmcons.h>
  50. #include <mapicode.h>
  51. #include <math.h>
  52. #include <memory.h>
  53. #include <mmsystem.h>
  54. #include <objbase.h>
  55. #include <ocidl.h>
  56. #include <process.h>
  57. #include <shellapi.h>
  58. #include <shlobj.h>
  59. #include <shlguid.h>
  60. #include <snmp.h>
  61. #include <stdarg.h>
  62. #include <stddef.h>
  63. #include <stdio.h>
  64. #include <stdlib.h>
  65. #include <string.h>
  66. #include <sys/stat.h>
  67. #include <sys/timeb.h>
  68. #include <sys/types.h>
  69. #include <TCHAR.H>
  70. #include <time.h>
  71. #include <vfw.h>
  72. #include <winerror.h>
  73. #include <wininet.h>
  74. #include <winreg.h>
  75. #ifndef DIRECTINPUT_VERSION
  76. # define DIRECTINPUT_VERSION 0x800
  77. #endif
  78. #include <dinput.h>
  79. //------------------------------------------------------------------------------------ STL Includes
  80. // srj sez: no, include STLTypesdefs below, instead, thanks
  81. //#include <algorithm>
  82. //#include <bitset>
  83. //#include <hash_map>
  84. //#include <list>
  85. //#include <map>
  86. //#include <queue>
  87. //#include <set>
  88. //#include <stack>
  89. //#include <string>
  90. //#include <vector>
  91. //------------------------------------------------------------------------------------ RTS Includes
  92. // Icky. These have to be in this order.
  93. #include "Lib/Basetype.h"
  94. #include "Common/STLTypedefs.h"
  95. #include "Common/Errors.h"
  96. #include "Common/Debug.h"
  97. #include "Common/AsciiString.h"
  98. #include "Common/SubsystemInterface.h"
  99. #include "Common/GameCommon.h"
  100. #include "Common/GameMemory.h"
  101. #include "Common/GameType.h"
  102. #include "Common/GlobalData.h"
  103. // You might not want Kindof in here because it seems like it changes frequently, but the problem
  104. // is that Kindof is included EVERYWHERE, so it might as well be precompiled.
  105. #include "Common/INI.h"
  106. #include "Common/KindOf.h"
  107. #include "Common/DisabledTypes.h"
  108. #include "Common/NameKeyGenerator.h"
  109. #include "GameClient/ClientRandomValue.h"
  110. #include "GameLogic/LogicRandomValue.h"
  111. #include "Common/ObjectStatusTypes.h"
  112. #include "Common/Thing.h"
  113. #include "Common/UnicodeString.h"
  114. #endif /* __PRERTS_H__ */