Merge pull request #52963 from Pineapple/WIN32_LEAN_AND_MEAN_master
This commit is contained in:
commit
b1c6826b9f
18 changed files with 21 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/templates/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/os/os.h"
|
||||
|
||||
#ifdef WINDOWS_ENABLED
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#define ENV_PATH_SEP ";"
|
||||
|
|
|
@ -28,14 +28,12 @@
|
|||
/* 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/config/project_settings.h"
|
||||
#include "core/io/marshalls.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 "drivers/windows/mutex_windows.h"
|
||||
|
|
|
@ -45,6 +45,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/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
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
#include <stdio.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
|
||||
#include "core/os/keyboard.h"
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include <winuser.h>
|
||||
|
||||
class KeyMappingWindows {
|
||||
|
|
|
@ -28,15 +28,13 @@
|
|||
/* 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/debugger/engine_debugger.h"
|
||||
#include "core/debugger/script_debugger.h"
|
||||
#include "core/io/marshalls.h"
|
||||
#include "core/version_generated.gen.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"
|
||||
|
|
|
@ -57,7 +57,9 @@
|
|||
|
||||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
#include <shellapi.h>
|
||||
#include <stdio.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
#define VULKAN_DEVICE_WIN_H
|
||||
|
||||
#include "drivers/vulkan/vulkan_context.h"
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
class VulkanContextWindows : public VulkanContext {
|
||||
|
|
|
@ -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