diff --git a/source/Display/GLContext.cpp b/source/Display/GLContext.cpp index 912c9ff..2c812dc 100644 --- a/source/Display/GLContext.cpp +++ b/source/Display/GLContext.cpp @@ -1,10 +1,10 @@ #include -#ifdef _WIN32 +#ifdef SPECTRE_PLATFORM_WIN #include typedef sp::Win32GLContext ContextType; -#elif defined(__linux__) || defined(unix) || defined(__unix) || defined(__unix__) +#elif SPECTRE_PLATFORM_UNIX #include typedef sp::GLXContext ContextType; #else diff --git a/source/Platform/PlatformApplication.cpp b/source/Platform/PlatformApplication.cpp index 02076a0..9bd32b3 100644 --- a/source/Platform/PlatformApplication.cpp +++ b/source/Platform/PlatformApplication.cpp @@ -1,10 +1,10 @@ #include "PlatformApplication.h" -#ifdef _WIN32 +#ifdef SPECTRE_PLATFORM_WIN #include typedef sp::Win32Application ApplicationType; -#elif defined(__linux__) || defined(unix) || defined(__unix) || defined(__unix__) +#elif SPECTRE_PLATFORM_UNIX #include typedef sp::UnixApplication ApplicationType; #else diff --git a/source/Platform/PlatformDisplay.cpp b/source/Platform/PlatformDisplay.cpp index 3298b98..4cfb3c7 100644 --- a/source/Platform/PlatformDisplay.cpp +++ b/source/Platform/PlatformDisplay.cpp @@ -2,10 +2,10 @@ #include #include "PlatformDisplay.h" -#ifdef _WIN32 +#ifdef SPECTRE_PLATFORM_WIN #include typedef sp::Win32Display DisplayType; -#elif defined(__linux__) || defined(unix) || defined(__unix) || defined(__unix__) +#elif SPECTRE_PLATFORM_UNIX #include typedef sp::X11Display DisplayType; #else diff --git a/source/System/MessageQueue.cpp b/source/System/MessageQueue.cpp index 3550e36..57f4fa4 100644 --- a/source/System/MessageQueue.cpp +++ b/source/System/MessageQueue.cpp @@ -1,10 +1,10 @@ #include -#ifdef _WIN32 +#ifdef SPECTRE_PLATFORM_WIN #include typedef sp::Win32EventQueue ImplType; -#elif defined(__linux__) || defined(unix) || defined(__unix) || defined(__unix__) +#elif SPECTRE_PLATFORM_UNIX #include typedef sp::X11EventQueue ImplType; #else