Subversion Repositories pentevo

Rev

Blame | Last modification | View Log | Download | RSS feed | ?url?

  1. #define _WIN32_WINNT        0x0500   // mouse wheel since win2k
  2. #define _WIN32_IE           0x0500   // for property sheet in win95. without this will not start in 9x
  3. #define DIRECTINPUT_VERSION 0x05b2   // joystick since dx 5.0 (for NT4, need 3.0)
  4. #define DIRECTSOUND_VERSION 0x0800
  5. #define DIRECTDRAW_VERSION  0x0500
  6. #define DIRECT3D_VERSION    0x0900
  7. //#define _CRT_SECURE_NO_DEPRECATE      //уже нет в коде
  8. #define _CRT_NONSTDC_NO_DEPRECATE
  9. #include <winsock2.h>                   //NEDOREPO maybe netusb
  10. #include <windows.h>
  11. #include <windowsx.h>
  12. #include <setupapi.h>
  13. #include <commctrl.h>
  14. #include "sdk/ddraw.h"
  15.  
  16. #ifdef _DEBUG
  17. #define D3D_DEBUG_INFO 1
  18. #endif
  19.  
  20. #include <d3d9.h>
  21. #include "sdk/dinput.h"
  22. #include "sdk/dsound.h"
  23. #include <urlmon.h>
  24. #include <mshtmhst.h>
  25. #include <stddef.h>
  26. #include <stdio.h>
  27. #include <ctype.h>
  28. #include <string.h>
  29. #include <stdlib.h>
  30. #include <stddef.h>
  31. #include <limits.h>
  32. #include <malloc.h>
  33. #include <conio.h>
  34. #define _USE_MATH_DEFINES
  35. #include <math.h>
  36. #include <process.h>
  37.  
  38. #ifdef _DEBUG
  39. #ifdef _MSC_VER
  40. #include <crtdbg.h>
  41. #endif
  42. #endif
  43.  
  44. #if defined(_M_IX86) || defined(_M_X64)
  45. #include <assert.h>
  46. #else
  47. #define assert(x)
  48. #endif
  49.  
  50. #if _MSC_VER >= 1300
  51. #include <intrin.h>
  52. #include <emmintrin.h>
  53. #endif
  54.  
  55. #ifdef __GNUC__
  56. #include <intrin.h>
  57. #include <mcx.h>
  58. #include <winioctl.h>
  59. #include <algorithm>
  60. using std::min;
  61. using std::max;
  62. #ifdef __clang__
  63. #include <emmintrin.h>
  64. #else
  65. #include <cpuid.h>
  66. #endif
  67. #endif
  68.  
  69. #include "sdk/ddk.h"
  70.  
  71. #include "mods.h"
  72.  
  73. #pragma comment(lib, "dinput.lib")
  74. #pragma comment(lib, "ddraw.lib")
  75. #pragma comment(lib, "dsound.lib")
  76. #pragma comment(lib, "dxguid.lib")
  77. #pragma comment(lib, "user32.lib")
  78. #pragma comment(lib, "gdi32.lib")
  79. #pragma comment(lib, "shell32.lib")
  80. #pragma comment(lib, "winmm.lib")
  81. #pragma comment(lib, "comdlg32.lib")
  82. #pragma comment(lib, "comctl32.lib")
  83. #pragma comment(lib, "dxerr.lib")
  84. #pragma comment(lib, "setupapi.lib")
  85.                                         //NEDOREPO
  86. #pragma comment (lib, "Ws2_32.lib")
  87. #pragma comment (lib, "IPHLPAPI.lib")
  88.  
  89. //#pragma comment(linker, "settings.res")
  90.  
  91. #if _MSC_VER >= 1900
  92. #pragma comment(lib, "legacy_stdio_definitions.lib")
  93. #endif
  94.  
  95. #define CACHE_LINE 64U
  96.  
  97. #if _MSC_VER >= 1300
  98. #define CACHE_ALIGNED __declspec(align(CACHE_LINE))
  99. #else
  100. #define CACHE_ALIGNED /*Alone Coder*/
  101. #endif
  102.