bindlib_w32 fix for Visual Studio .NET

From: Date: Sat, 22 Feb 2003 20:57:23 +0000
Subject: bindlib_w32 fix for Visual Studio .NET
Groups: php.dev 
Request: Send a blank email to php-dev+get-94473@lists.php.net to get a copy of this message
I ran into a problem when building bindlib_w32 using Visual Studio .NEt under Windows XP: nsap_addr.c(38) : error C2491: 'isxdigit' : definition of dllimport function not allowed The attached patch corrects this problem. I don't have commit privileges for the bindlib_w32 module, so if someone could either grant me karma or commit this for me, I'd appreciate it. -- Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)

Index: nsap_addr.c =================================================================== RCS file: /repository/bindlib_w32/nsap_addr.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 nsap_addr.c --- nsap_addr.c 26 Apr 1999 14:02:36 -0000 1.1.1.1 +++ nsap_addr.c 22 Feb 2003 20:54:56 -0000 @@ -31,7 +31,8 @@ #include "conf/portability.h" -#if !defined(isxdigit) /* XXX - could be a function */ +/* XXX - isxdigit could be an existing function or macro */ +#if !defined(isxdigit) && !defined(_CTYPE_DEFINED) static int isxdigit(c) register int c;
« previous php.dev (#94473) next »