bug 568948: building with latest MSVC
[fw/sdcc] / sdcc_vc.h
index 1257a016c0bd1df593856c15ee05b10364f7e3a7..b438c0e771bb1e2aea5e23d38836caaed3bf2024 100644 (file)
--- a/sdcc_vc.h
+++ b/sdcc_vc.h
@@ -9,6 +9,12 @@
 #define SDCC_VERSION_P 1
 #define SDCC_VERSION_STR "2.2.2"
 
+/* MSVC 6 does not have __FUNCTION__ preprocessor macro defined */
+
+#if defined(_MSC_VER) && (_MSC_VER < 1300)
+#define __FUNCTION__ __FILE__
+#endif
+
 #undef PREFIX
 #undef DATADIR
 #undef SRCDIR
@@ -33,8 +39,6 @@
 #undef OPT_DISABLE_MCS51
 #undef OPT_DISABLE_AVR
 
-#define OPT_DISABLE_GC                 1
-
 #endif
 
 /* End of config.h */