1 #pragma once 2 3 #ifdef __MSVCRT_VERSION__ 4 #undef __MSVCRT_VERSION__ 5 #endif 6 #define __MSVCRT_VERSION__ 0x0700 7 8 #define XMD_H 9 10 #undef _WIN32_WINNT 11 #define _WIN32_WINNT 0x0600 12 #include <winsock2.h> 13 #include <windows.h> 14 #include <psapi.h> 15 16 // ugly hack to make our code work. windows.h has some terrible includes which define these things 17 // that clash with our variable names. Including them can be omitted when adding 18 // #define WIN32_LEAN_AND_MEAN 19 // before including windows.h, but then we will miss some defines needed for libraries like libjpeg. 20 #undef near 21 #undef grp2 22 #undef interface 23 24 #define sleep(n) Sleep(1000 * n) 25 #define HAVE_BOOLEAN 26 27 // modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh 28 // vim: shiftwidth=2 expandtab tabstop=2 cindent 29 // kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified; 30