#define MODE_PARSE 1\r
#define MODE_SCAN 2\r
#define MODE_DUMP 3\r
+//\r
+// Different file separater for Linux and Windows\r
+//\r
+#ifdef __GNUC__\r
+#define FILE_SEP_CHAR '/'\r
+#define FILE_SEP_STRING "/"\r
+#else\r
+#define FILE_SEP_CHAR '\\'\r
+#define FILE_SEP_STRING "\\"\r
+#endif\r
\r
//\r
// We keep a linked list of these for the source files we process\r
}\r
\r
strcpy (NewList->Str, Argv[1]);\r
- if (NewList->Str[strlen (NewList->Str) - 1] != '\\') {\r
- strcat (NewList->Str, "\\");\r
+ if (NewList->Str[strlen (NewList->Str) - 1] != FILE_SEP_CHAR) {\r
+ strcat (NewList->Str, FILE_SEP_STRING);\r
}\r
//\r
// Add it to our linked list\r