summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 34da8f501..a0d715ed3 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -235,6 +235,11 @@
#undef assert
#define assert(expression) if (!(expression)) { SetExceptionString("Assertion failed at %s:%d: %s", __FILE__, __LINE__, #expression); *(byte*)0 = 0; }
#endif
+
+ /* MSVC doesn't have these :( */
+ #define S_ISDIR(mode) (mode & S_IFDIR)
+ #define S_ISREG(mode) (mode & S_IFREG)
+
#endif /* defined(_MSC_VER) */
#if defined(WINCE)