uitools_plat/cdl_api/inc/CdlCompilerToolkit/CdlCompat.h
changeset 1 b700e12870ca
child 18 8cac7c60e3d2
child 19 99468bbbf3dc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/uitools_plat/cdl_api/inc/CdlCompilerToolkit/CdlCompat.h	Mon Jan 18 21:13:05 2010 +0200
@@ -0,0 +1,23 @@
+// Cdlcompat.h
+
+#ifndef CDLCOMPAT_H
+#define CDLCOMPAT_H
+
+/* _MSC_VER for checking VC6, so that we can keep this library still compilable using `tools'. */
+#if (defined(__MSVCRT__) || defined(_MSC_VER))
+#define CDL_W32
+#endif
+
+// path separator
+/* #ifdef CDL_W32 */
+/* #define PATHSEP "\\" */
+/* #define PATHSEPCHAR '\\' */
+/* #else */
+#define PATHSEP "/"
+#define PATHSEPCHAR '/'
+/* #endif */
+
+const char FORWARDSLASH = '/';
+const char BACKSLASH = '\\';
+
+#endif