common.h

changeset 32
d11a034aabfd
parent 29
b4e09ae24bf1
child 33
fd35f6cb5f28
--- a/common.h	Mon Jul 16 04:33:09 2012 +0300
+++ b/common.h	Mon Jul 16 16:15:16 2012 +0300
@@ -52,6 +52,11 @@
 #define VERSION_MINOR 0
 #define VERSION_REVISION 999
 
+// On Windows, files are case-insensitive
+#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32)) && !defined(__CYGWIN__)
+	#define FILE_CASEINSENSITIVE 0
+#endif
+
 // Where is the parser at?
 enum parsermode {
 	MODE_TOPLEVEL,	// at top level
@@ -76,6 +81,8 @@
 #define PLURAL(n) (n != 1) ? "s" : ""
 
 void error (const char* text, ...);
+char* ObjectFileName (str s);
+bool fexists (char* path);
 
 #ifndef __PARSER_CXX__
 extern int g_NumStates;

mercurial