On 11/29/2014 09:20 PM, KO Myung-Hun wrote: > * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp > on EMX, respectively. > (_DLL_InitTerm): New on EMX. > (get_shared_library_fullname): Implement on EMX. > --- > lib/relocatable.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++++--- > 1 file changed, 48 insertions(+), 3 deletions(-) > > diff --git a/lib/relocatable.c b/lib/relocatable.c > index 81dcaeb..c48ed1c 100644 > --- a/lib/relocatable.c > +++ b/lib/relocatable.c > @@ -47,6 +47,14 @@ > # include <windows.h> > #endif > > +#ifdef __EMX__ > +# define INCL_DOS > +# include <os2.h> > + > +#define strcmp stricmp > +#define strncmp strnicmp
stricmp is a non-standard case-insensitive comparator. Why not use the standardized strcasecmp instead? Similarly for strncasecmp. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature