Merge pull request #52964 from Pineapple/WIN32_LEAN_AND_MEAN
This commit is contained in:
commit
d01c660954
18 changed files with 20 additions and 10 deletions
|
@ -36,9 +36,9 @@
|
|||
|
||||
#ifdef WINDOWS_ENABLED
|
||||
#include <stdio.h>
|
||||
#include <winsock2.h>
|
||||
// Needs to be included after winsocks2.h
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#ifndef UWP_ENABLED
|
||||
#include <iphlpapi.h>
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
|
||||
#include <audioclient.h>
|
||||
#include <mmdeviceapi.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
class AudioDriverWASAPI : public AudioDriver {
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <wchar.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
|
||||
#include <share.h> // _SH_DENYNO
|
||||
#include <shlwapi.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include <errno.h>
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include "core/vector.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include <mmsystem.h>
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include "servers/audio_server.h"
|
||||
|
||||
#include <mmsystem.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <wrl/client.h>
|
||||
#include <xaudio2.h>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include "core/os/os.h"
|
||||
|
||||
// Here, after os/os.h
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
namespace MonoRegUtils {
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include "core/project_settings.h"
|
||||
|
||||
#ifdef WINDOWS_ENABLED
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#define ENV_PATH_SEP ";"
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include "thread_local.h"
|
||||
|
||||
#ifdef WINDOWS_ENABLED
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <pthread.h>
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
// Must include Winsock before windows.h (included by os_uwp.h)
|
||||
#include "drivers/unix/net_socket_posix.h"
|
||||
|
||||
#include "os_uwp.h"
|
||||
|
||||
#include "core/io/marshalls.h"
|
||||
|
@ -38,6 +35,7 @@
|
|||
#include "drivers/gles2/rasterizer_gles2.h"
|
||||
#include "drivers/gles3/rasterizer_gles3.h"
|
||||
#include "drivers/unix/ip_unix.h"
|
||||
#include "drivers/unix/net_socket_posix.h"
|
||||
#include "drivers/windows/dir_access_windows.h"
|
||||
#include "drivers/windows/file_access_windows.h"
|
||||
#include "main/main.h"
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
#include <stdio.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
class OS_UWP : public OS {
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include "core/error_list.h"
|
||||
#include "core/os/os.h"
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
typedef bool(APIENTRY *PFNWGLSWAPINTERVALEXTPROC)(int interval);
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#ifndef CRASH_HANDLER_WINDOWS_H
|
||||
#define CRASH_HANDLER_WINDOWS_H
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
// Crash handler exception only enabled with MSVC
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
|
||||
#include "core/os/keyboard.h"
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include <winuser.h>
|
||||
|
||||
class KeyMappingWindows {
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
// Must include Winsock before windows.h (included by os_windows.h)
|
||||
#include "drivers/unix/net_socket_posix.h"
|
||||
|
||||
#include "os_windows.h"
|
||||
|
||||
#include "core/io/marshalls.h"
|
||||
|
@ -38,6 +35,7 @@
|
|||
#include "core/version_generated.gen.h"
|
||||
#include "drivers/gles2/rasterizer_gles2.h"
|
||||
#include "drivers/gles3/rasterizer_gles3.h"
|
||||
#include "drivers/unix/net_socket_posix.h"
|
||||
#include "drivers/windows/dir_access_windows.h"
|
||||
#include "drivers/windows/file_access_windows.h"
|
||||
#include "joypad_windows.h"
|
||||
|
|
|
@ -52,7 +52,9 @@
|
|||
#include <dwmapi.h>
|
||||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
#include <shellapi.h>
|
||||
#include <stdio.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
// WinTab API
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include "core/os/file_access.h"
|
||||
#include "core/os/os.h"
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
class PowerWindows {
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#ifdef WINDOWS_ENABLED
|
||||
|
||||
#include <stdio.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
void WindowsTerminalLogger::logv(const char *p_format, va_list p_list, bool p_err) {
|
||||
|
|
Loading…
Reference in a new issue