bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 08/21] get_shared_library_fullname: port to EMX


From: Eric Blake
Subject: Re: [PATCH 08/21] get_shared_library_fullname: port to EMX
Date: Mon, 01 Dec 2014 07:57:12 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]