Use SPECTRE_PLATFORM_* defines instead of raw compiler ones.
This commit is contained in:
parent
2eec1c9f75
commit
81c7e34c58
4 changed files with 8 additions and 8 deletions
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
#include <Spectre/Display/GLContext.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef SPECTRE_PLATFORM_WIN
|
||||
#include <Platform/Win32/Win32GLContext.h>
|
||||
typedef sp::Win32GLContext ContextType;
|
||||
#elif defined(__linux__) || defined(unix) || defined(__unix) || defined(__unix__)
|
||||
#elif SPECTRE_PLATFORM_UNIX
|
||||
#include <Platform/Unix/GLXContext.h>
|
||||
typedef sp::GLXContext ContextType;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
#include "PlatformApplication.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef SPECTRE_PLATFORM_WIN
|
||||
#include <Platform/Win32/Win32Application.h>
|
||||
typedef sp::Win32Application ApplicationType;
|
||||
#elif defined(__linux__) || defined(unix) || defined(__unix) || defined(__unix__)
|
||||
#elif SPECTRE_PLATFORM_UNIX
|
||||
#include <Platform/Unix/UnixApplication.h>
|
||||
typedef sp::UnixApplication ApplicationType;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
#include <Spectre/Display/Display.h>
|
||||
#include "PlatformDisplay.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef SPECTRE_PLATFORM_WIN
|
||||
#include <Platform/Win32/Win32Display.h>
|
||||
typedef sp::Win32Display DisplayType;
|
||||
#elif defined(__linux__) || defined(unix) || defined(__unix) || defined(__unix__)
|
||||
#elif SPECTRE_PLATFORM_UNIX
|
||||
#include <Platform/Unix/X11Display.h>
|
||||
typedef sp::X11Display DisplayType;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
#include <Spectre/System/MessageQueue.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef SPECTRE_PLATFORM_WIN
|
||||
#include <Platform/Win32/Win32EventQueue.h>
|
||||
typedef sp::Win32EventQueue ImplType;
|
||||
#elif defined(__linux__) || defined(unix) || defined(__unix) || defined(__unix__)
|
||||
#elif SPECTRE_PLATFORM_UNIX
|
||||
#include <Platform/Unix/X11EventQueue.h>
|
||||
typedef sp::X11EventQueue ImplType;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue