CyberCircuits / minini

Automatically exported from code.google.com/p/minini
Other
0 stars 0 forks source link

implicit declaration of function 'strnicmp' #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
minini/minIni.c: In function 'getkeystring':
minini/minIni.c:138: warning: implicit declaration of function 'strnicmp'

This is on a MAC... "__APPLE__" is a builtin definition which you can check.

Change this:
#if !defined strnicmp
  #if defined __LINUX__ || defined __FreeBSD__ || defined __OpenBSD__
    #define strnicmp  strncasecmp
  #endif
#endif

to:
#if !defined strnicmp
  #if defined __LINUX__ || defined __FreeBSD__ || defined __OpenBSD__ ||
defined __APPLE__
    #define strnicmp  strncasecmp
  #endif
#endif

Grtz,
Steven

Original issue reported on code.google.com by s.vaning...@gmail.com on 25 May 2009 at 10:30

GoogleCodeExporter commented 9 years ago
Modified as per the suggestion. Thank you.

Original comment by thiadmer...@gmail.com on 6 Jul 2010 at 12:44