src/stdafx.h
changeset 10384 6b408b83ac34
parent 10308 72ffe5505a38
child 10385 4f9838649c7f
--- a/src/stdafx.h	Wed Nov 26 01:03:34 2008 +0000
+++ b/src/stdafx.h	Wed Nov 26 01:07:49 2008 +0000
@@ -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)