Define WIN32_LEAN_AND_MEAN to avoid collision with winsock2

This commit is contained in:
pstef 2025-04-12 00:04:40 +00:00
parent 05adec60da
commit 66aa1424f0
13 changed files with 16 additions and 0 deletions

View File

@ -14,6 +14,7 @@
*/
#define CINTERFACE
#define WIN32_LEAN_AND_MEAN
#include "d3d10_defines.h"
#include "d3dcompiler_common.h"

View File

@ -14,6 +14,7 @@
*/
#define CINTERFACE
#define WIN32_LEAN_AND_MEAN
#include <string.h>

View File

@ -15,6 +15,8 @@
#if !defined(_XBOX)
#define WIN32_LEAN_AND_MEAN
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0601 /* Windows 7 */
#endif

View File

@ -15,6 +15,8 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#define WIN32_LEAN_AND_MEAN
/* VC6 needs objbase included before initguid, but nothing else does */
#include <objbase.h>
#include <initguid.h>

View File

@ -22,6 +22,7 @@
*/
#define CINTERFACE
#define WIN32_LEAN_AND_MEAN
#define COBJMACROS
#include <string.h>

View File

@ -22,6 +22,7 @@
*/
#define CINTERFACE
#define WIN32_LEAN_AND_MEAN
#include <string.h>
#include <malloc.h>

View File

@ -29,6 +29,7 @@
#include <string.h>
#include <math.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <commdlg.h>

View File

@ -29,6 +29,7 @@
#include <string.h>
#include <math.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <commdlg.h>

View File

@ -15,6 +15,7 @@
*/
#define CINTERFACE
#define WIN32_LEAN_AND_MEAN
#include <tchar.h>

View File

@ -18,6 +18,8 @@
#pragma comment(lib, "dinput8")
#endif
#define WIN32_LEAN_AND_MEAN
#undef DIRECTINPUT_VERSION
#define DIRECTINPUT_VERSION 0x0800

View File

@ -13,6 +13,7 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifdef CXX_BUILD

View File

@ -17,6 +17,7 @@
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#define WIN32_LEAN_AND_MEAN
#include <windowsx.h>
#include <dinput.h>

View File

@ -32,6 +32,7 @@
#else
#include <io.h>
#include <fcntl.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#endif