Subversion Repositories pentevo

Rev

Rev 796 | Blame | Compare with Previous | 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 <windows.h>
  10. #include <windowsx.h>
  11. #include <setupapi.h>
  12. #include <commctrl.h>
  13. #include "sdk/ddraw.h"
  14.  
  15. #ifdef _DEBUG
  16. #define D3D_DEBUG_INFO 1
  17. #endif
  18.  
  19. #include <d3d9.h>
  20. #include "sdk/dinput.h"
  21. #include "sdk/dsound.h"
  22. #include <urlmon.h>
  23. #include <mshtmhst.h>
  24. #include <stddef.h>
  25. #include <stdio.h>
  26. #include <ctype.h>
  27. #include <string.h>
  28. #include <stdlib.h>
  29. #include <stddef.h>
  30. #include <limits.h>
  31. #include <malloc.h>
  32. #include <conio.h>
  33. #define _USE_MATH_DEFINES
  34. #include <math.h>
  35. #include <process.h>
  36.  
  37. #ifdef _DEBUG
  38. #ifdef _MSC_VER
  39. #include <crtdbg.h>
  40. #endif
  41. #endif
  42.  
  43. #if defined(_M_IX86) || defined(_M_X64)
  44. #include <assert.h>
  45. #else
  46. #define assert(x)
  47. #endif
  48.  
  49. #if _MSC_VER >= 1300
  50. #include <intrin.h>
  51. #include <emmintrin.h>
  52. #endif
  53.  
  54. #ifdef __GNUC__
  55. #include <intrin.h>
  56. #include <mcx.h>
  57. #include <winioctl.h>
  58. #include <algorithm>
  59. using std::min;
  60. using std::max;
  61. #ifdef __clang__
  62. #include <emmintrin.h>
  63. #else
  64. #include <cpuid.h>
  65. #endif
  66. #endif
  67.  
  68. #include "sdk/ddk.h"
  69.  
  70. #include "mods.h"
  71.  
  72. #pragma comment(lib, "dinput.lib")
  73. #pragma comment(lib, "ddraw.lib")
  74. #pragma comment(lib, "dsound.lib")
  75. #pragma comment(lib, "dxguid.lib")
  76. #pragma comment(lib, "user32.lib")
  77. #pragma comment(lib, "gdi32.lib")
  78. #pragma comment(lib, "shell32.lib")
  79. #pragma comment(lib, "winmm.lib")
  80. #pragma comment(lib, "comdlg32.lib")
  81. #pragma comment(lib, "comctl32.lib")
  82. #pragma comment(lib, "dxerr.lib")
  83. #pragma comment(lib, "setupapi.lib")
  84. //#pragma comment(linker, "settings.res")
  85.  
  86. #if _MSC_VER >= 1900
  87. #pragma comment(lib, "legacy_stdio_definitions.lib")
  88. #endif
  89.  
  90. #define CACHE_LINE 64U
  91.  
  92. #if _MSC_VER >= 1300
  93. #define CACHE_ALIGNED __declspec(align(CACHE_LINE))
  94. #else
  95. #define CACHE_ALIGNED /*Alone Coder*/
  96. #endif
  97.