From 81c7e34c581749558164bfad370d35d0442592b9 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 26 Dec 2020 17:25:25 +0100 Subject: [PATCH] Use SPECTRE_PLATFORM_* defines instead of raw compiler ones. --- source/Display/GLContext.cpp | 4 ++-- source/Platform/PlatformApplication.cpp | 4 ++-- source/Platform/PlatformDisplay.cpp | 4 ++-- source/System/MessageQueue.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) 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