src/objacces.c
changeset 629 b9274b595650
parent 594 17a171fe7c56
child 648 dd0a627142c6
--- a/src/objacces.c	Fri Nov 12 22:02:32 2010 +0100
+++ b/src/objacces.c	Fri Nov 12 22:24:06 2010 +0100
@@ -40,10 +40,12 @@
 
 #include "data.h"
 
-#ifdef DEBUG_WAR_CONSOLE_ON
+//We need the function implementation for linking
+//Only a placeholder with a define isnt enough!
 UNS8 accessDictionaryError(UNS16 index, UNS8 subIndex,
                            UNS32 sizeDataDict, UNS32 sizeDataGiven, UNS32 code)
 {
+#ifdef DEBUG_WAR_CONSOLE_ON
   MSG_WAR(0x2B09,"Dictionary index : ", index);
   MSG_WAR(0X2B10,"           subindex : ", subIndex);
   switch (code) {
@@ -72,11 +74,10 @@
   default :
     MSG_WAR(0x2B20, "Unknown error code : ", code);
   }
+  #endif
+
   return 0;
 }
-#else
-#define accessDictionaryError(index, subIndex, sizeDataDict, sizeDataGiven, code)
-#endif
 
 UNS32 _getODentry( CO_Data* d,
                    UNS16 wIndex,