I'm tried to build test.c on Linux using Scons build system (configuration
file in attachment), and got these errors:
minIni.o: In function `getkeystring':
minIni.c:(.text+0x26b): undefined reference to `strnicmp'
minIni.c:(.text+0x362): undefined reference to `strnicmp'
minIni.o: In function `ini_puts':
minIni.c:(.text+0x96b): undefined reference to `strnicmp'
minIni.c:(.text+0xb29): undefined reference to `strnicmp'
To fix this issue I'm put strnicmp into "ifdef" section:
#ifdef __WIN32
#define _tcsnicmp strnicmp
#else
#define _tcsnicmp strncasecmp
#endif
diff of a fix:
diff -rN minIni_02/minIni.c minIni_02_path/minIni.c
50a51
> #ifdef __WIN32
51a53,55
> #else
> #define _tcsnicmp strncasecmp
> #endif
Original issue reported on code.google.com by daraku.a...@gmail.com on 18 May 2008 at 9:59
Original issue reported on code.google.com by
daraku.a...@gmail.com
on 18 May 2008 at 9:59