diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-16 14:44:59 +0100 |
---|---|---|
committer | shfil <filip.gawin@zoho.com> | 2021-01-17 21:32:54 +0100 |
commit | 5a47379bf5f011a65c1d0f88a0cb5f2130feb9db (patch) | |
tree | d3b13533c6058d2b26035d180e4a7e8b735c283c /src/skel/glfw | |
parent | vehicle fixes (diff) | |
download | re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.gz re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.bz2 re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.lz re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.xz re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.zst re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.zip |
Diffstat (limited to 'src/skel/glfw')
-rw-r--r-- | src/skel/glfw/glfw.cpp | 45 |
1 files changed, 18 insertions, 27 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index 93bfde5a..683407aa 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -1,22 +1,30 @@ #if defined RW_GL3 && !defined LIBRW_SDL2 #ifdef _WIN32 -#include <windows.h> +#include <shlobj.h> +#include <basetsd.h> #include <mmsystem.h> +#include <regstr.h> #include <shellapi.h> #include <windowsx.h> -#include <basetsd.h> -#include <regstr.h> -#include <shlobj.h> + +DWORD _dwOperatingSystemVersion; +#include "resource.h" +#else +long _dwOperatingSystemVersion; +#ifndef __APPLE__ +#include <sys/sysinfo.h> +#else +#include <mach/mach_host.h> +#include <sys/sysctl.h> +#endif +#include <errno.h> +#include <locale.h> +#include <signal.h> +#include <stddef.h> #endif -#define WITHWINDOWS #include "common.h" - -#pragma warning( push ) -#pragma warning( disable : 4005) -#pragma warning( pop ) - #if (defined(_MSC_VER)) #include <tchar.h> #endif /* (defined(_MSC_VER)) */ @@ -73,23 +81,6 @@ static psGlobalType PsGlobal; size_t _dwMemAvailPhys; RwUInt32 gGameState; -#ifdef _WIN32 -DWORD _dwOperatingSystemVersion; -#include "resource.h" -#else -long _dwOperatingSystemVersion; -#ifndef __APPLE__ -#include <sys/sysinfo.h> -#else -#include <mach/mach_host.h> -#include <sys/sysctl.h> -#endif -#include <stddef.h> -#include <locale.h> -#include <signal.h> -#include <errno.h> -#endif - #ifdef DONT_TRUST_RECOGNIZED_JOYSTICKS char gSelectedJoystickName[128] = ""; #endif |