ivakyb / minini

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

implicit declaration of function `strncasecmp' #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
compile the library under MinGW...

@minIni.c: 64, it checks for __GNUC__, which is defined under MinGW.
The problem is that strnicmp gets defined as strncasecmp, which is unknown
to MinGW.

A possible solution would be to add a check for __MINGW32__ and __MINGW64__

Grtz,
Steven

Original issue reported on code.google.com by s.vaning...@gmail.com on 9 Mar 2009 at 12:36

GoogleCodeExporter commented 9 years ago
I was too fast. Removing the "-ansi" parameter resolved this issue.

Original comment by s.vaning...@gmail.com on 9 Mar 2009 at 1:00

GoogleCodeExporter commented 9 years ago
I will remove the test for __GNUC__ and instead allow users to choose between
strnicmp() and strncasecmp() in the glue file (minGlue.h). The default function 
name
will still be strncasecmp() for Linux, FreeBSD and OpenBSD, and strnicmp() for
Windows and the rest.

Original comment by thiadmer...@gmail.com on 11 Mar 2009 at 12:06

GoogleCodeExporter commented 9 years ago
Fixed in release 0.7.

Original comment by thiadmer...@gmail.com on 6 May 2009 at 8:09