diff options
Diffstat (limited to 'core/fxcrt/cfx_fileaccess_posix.h')
-rw-r--r-- | core/fxcrt/cfx_fileaccess_posix.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/fxcrt/cfx_fileaccess_posix.h b/core/fxcrt/cfx_fileaccess_posix.h index 84fc81bd98..381f115a13 100644 --- a/core/fxcrt/cfx_fileaccess_posix.h +++ b/core/fxcrt/cfx_fileaccess_posix.h @@ -8,10 +8,14 @@ #define CORE_FXCRT_CFX_FILEACCESS_POSIX_H_ #include "core/fxcrt/fileaccess_iface.h" +#include "core/fxcrt/fx_system.h" + +#if _FX_PLATFORM_ != _FX_PLATFORM_LINUX_ && \ + _FX_PLATFORM_ != _FX_PLATFORM_APPLE_ && \ + _FX_PLATFORM_ != _FX_PLATFORM_ANDROID_ +#error "Included on the wrong platform" +#endif -#if _FX_PLATFORM_ == _FX_PLATFORM_LINUX_ || \ - _FX_PLATFORM_ == _FX_PLATFORM_APPLE_ || \ - _FX_PLATFORM_ == _FX_PLATFORM_ANDROID_ class CFX_FileAccess_Posix : public FileAccessIface { public: CFX_FileAccess_Posix(); @@ -36,6 +40,5 @@ class CFX_FileAccess_Posix : public FileAccessIface { protected: int32_t m_nFD; }; -#endif #endif // CORE_FXCRT_CFX_FILEACCESS_POSIX_H_ |