summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_fileaccess_windows.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/cfx_fileaccess_windows.h')
-rw-r--r--core/fxcrt/cfx_fileaccess_windows.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/fxcrt/cfx_fileaccess_windows.h b/core/fxcrt/cfx_fileaccess_windows.h
index 451462bbca..4352a2b521 100644
--- a/core/fxcrt/cfx_fileaccess_windows.h
+++ b/core/fxcrt/cfx_fileaccess_windows.h
@@ -8,8 +8,12 @@
#define CORE_FXCRT_CFX_FILEACCESS_WINDOWS_H_
#include "core/fxcrt/fileaccess_iface.h"
+#include "core/fxcrt/fx_system.h"
+
+#if _FX_PLATFORM_ != _FX_PLATFORM_WINDOWS_
+#error "Included on the wrong platform"
+#endif
-#if _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_
class CFX_FileAccess_Windows : public FileAccessIface {
public:
CFX_FileAccess_Windows();
@@ -34,6 +38,5 @@ class CFX_FileAccess_Windows : public FileAccessIface {
protected:
void* m_hFile;
};
-#endif
#endif // CORE_FXCRT_CFX_FILEACCESS_WINDOWS_H_