ezEngine  Milestone 7
PlatformFeatures.h
1 #pragma once
2 
3 #if EZ_ENABLED(EZ_PLATFORM_WINDOWS)
5 #elif EZ_ENABLED(EZ_PLATFORM_OSX)
6  #include <Foundation/Basics/Platform/OSX/PlatformFeatures_OSX.h>
7 #elif EZ_ENABLED(EZ_PLATFORM_LINUX)
8  #include <Foundation/Basics/Platform/Linux/PlatformFeatures_Linux.h>
9 #else
10  #error "Undefined platform!"
11 #endif
12 
13 
14 // now check that the defines for each feature are set (either to 1 or 0, but they must be defined)
15 
16 #ifndef EZ_SUPPORTS_FILE_ITERATORS
17  #error "EZ_SUPPORTS_FILE_ITERATORS is not defined."
18 #endif
19 
20 #ifndef EZ_USE_POSIX_FILE_API
21  #error "EZ_USE_POSIX_FILE_API is not defined."
22 #endif
23 
24 #ifndef EZ_SUPPORTS_FILE_STATS
25  #error "EZ_SUPPORTS_FILE_STATS is not defined."
26 #endif
27 
28 #ifndef EZ_SUPPORTS_DYNAMIC_PLUGINS
29  #error "EZ_SUPPORTS_DYNAMIC_PLUGINS is not defined."
30 #endif
31