From: Gerhard H?r. <gha...@us...> - 2002-06-05 09:17:38
|
Update of /cvsroot/pypgsql/pypgsql In directory usw-pr-cvs1:/tmp/cvs-serv16621 Modified Files: pgversion.c Log Message: 05JUN2002 gh Fix name clash with stricmp with gcc on win32. Index: pgversion.c =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pgversion.c,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** pgversion.c 16 Apr 2002 00:14:01 -0000 1.15 --- pgversion.c 5 Jun 2002 09:17:35 -0000 1.16 *************** *** 111,118 **** /***********************************************************************\ ! | Name: stricmp | ! | Synopsis: int stricmp(char *s1, char *s2); | ! | Description: stricmp compares its arguments (ignoring case) and re- | ! | turns an integer less than, equal to, or greater than | | 0, based upon whether s1 is lexicographically less | | than, equal to, or greater than s2. | --- 111,118 ---- /***********************************************************************\ ! | Name: pgstricmp | ! | Synopsis: int pgstricmp(char *s1, char *s2); | ! | Description: pgstricmp compares its arguments (ignoring case) and | ! | returns an integer less than, equal to, or greater than | | 0, based upon whether s1 is lexicographically less | | than, equal to, or greater than s2. | *************** *** 121,125 **** \***********************************************************************/ ! static int stricmp(char *s1, char *s2) { int c1, c2; --- 121,125 ---- \***********************************************************************/ ! static int pgstricmp(char *s1, char *s2) { int c1, c2; *************** *** 175,179 **** /* Allow for development versions */ ! if (stricmp(last, "devel") == 0) return (errno != 0); --- 175,179 ---- /* Allow for development versions */ ! if (pgstricmp(last, "devel") == 0) return (errno != 0); |