replace non-ANSI strcmpi by as_strcmpi
[fw/sdcc] / as / mcs51 / lknoice.c
index dd4c86f3cf2cf6895eb08ad9632ce3dcf610c47f..2cd6a91cdcbbbb0164a1efadd4107c7cb3145948 100644 (file)
 #include <stdio.h>
 #include <setjmp.h>
 #include <string.h>
-//#if !defined(_MSC_VER)
-//#include <alloc.h>
-//#endif
 #include "aslink.h"
+#include "strcmpi.h"
 
 static void DefineGlobal( char *name, Addr_T value, int page );
 static void DefineScoped( char *name, Addr_T value, int page );
@@ -143,7 +141,7 @@ void DefineScoped( char *name, Addr_T value, int page )
  */
 void DefineFile( char *name, Addr_T value, int page )
 {
-       if (strcmpi( name, currentFile ) != 0)
+       if (as_strcmpi( name, currentFile ) != 0)
        {
                strcpy( currentFile, name );
                if (value != 0)
@@ -164,7 +162,7 @@ void DefineFile( char *name, Addr_T value, int page )
  */
 void DefineFunction( char *name, Addr_T value, int page )
 {
-       if (strcmpi( name, currentFunction ) != 0)
+       if (as_strcmpi( name, currentFunction ) != 0)
        {
                strcpy( currentFunction, name );
                 if (value != 0)
@@ -187,7 +185,7 @@ void DefineFunction( char *name, Addr_T value, int page )
  */
 void DefineStaticFunction( char *name, Addr_T value, int page )
 {
-       if (strcmpi( name, currentFunction ) != 0)
+       if (as_strcmpi( name, currentFunction ) != 0)
        {
                strcpy( currentFunction, name );
                if (value != 0)