1
0
Fork 0

source/Platform/PlatformApplication.cpp: ApplicationType is defined by some Win32 headers.

This commit is contained in:
Henrik Hautakoski 2020-12-28 18:39:16 +01:00
parent 845b93fb48
commit d48cc650a8

View file

@ -3,10 +3,10 @@
#ifdef SPECTRE_PLATFORM_WIN #ifdef SPECTRE_PLATFORM_WIN
#include <Platform/Win32/Win32Application.h> #include <Platform/Win32/Win32Application.h>
typedef sp::Win32Application ApplicationType; typedef sp::Win32Application ApplicationImpl;
#elif SPECTRE_PLATFORM_UNIX #elif SPECTRE_PLATFORM_UNIX
#include <Platform/Unix/UnixApplication.h> #include <Platform/Unix/UnixApplication.h>
typedef sp::UnixApplication ApplicationType; typedef sp::UnixApplication ApplicationImpl;
#else #else
#error "No Application implementation exists" #error "No Application implementation exists"
#endif #endif
@ -15,7 +15,7 @@ namespace sp {
PlatformApplication* PlatformApplication::create() PlatformApplication* PlatformApplication::create()
{ {
return new ApplicationType; return new ApplicationImpl;
} }
} // namespace sp } // namespace sp