fix genPlus bogus code generation demonstrated by Karl's eth.c
[fw/sdcc] / sdcc_vc.h
index ca2e5156037f966c323b6e4b86214cc7214706ef..afd0f2947caf50134f2cfd7bbad5ac24640aded2 100644 (file)
--- a/sdcc_vc.h
+++ b/sdcc_vc.h
@@ -9,6 +9,10 @@
 #define SDCC_VERSION_P 1
 #define SDCC_VERSION_STR "2.2.2"
 
+/* MSVC 6 does not have __FUNCTION__ preprocessor macro defined */
+
+#define __FUNCTION__ __FILE__
+
 #undef PREFIX
 #undef DATADIR
 #undef SRCDIR