* win-mac.h: conditionally define strcasecmp/strncasecmp macros
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 5 Jan 2004 03:39:53 +0000 (03:39 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 5 Jan 2004 03:39:53 +0000 (03:39 +0000)
      only if they do not already exist.

ticket: new
target_version: 1.3.2
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15963 dc483132-0cff-0310-8789-dd5450dbe970

src/include/ChangeLog
src/include/win-mac.h

index 5ca7de2e104a08d635d3d0700e547400b2498ab5..fdfcce86d1fd13fee1757b4c5420e24106f2b11f 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-04 Jeffrey Altman <jaltman@mit.edu>
+
+    * win-mac.h: conditionally define strcasecmp/strncasecmp macros 
+      only if they do not already exist.
+
 2003-12-23  Ken Raeburn  <raeburn@mit.edu>
 
        * configure.in: Check for flock, fchmod, chmod, strftime,
index b7519d752703254b865309066730ad132c8645fc..d1ad62bef27c400abdafe212d0d0c68f31b55fed 100644 (file)
@@ -148,8 +148,12 @@ typedef unsigned char      u_char;
 /*
  * Functions with slightly different names on the PC
  */
+#ifndef strcasecmp
 #define strcasecmp   stricmp
+#endif
+#ifndef strncasecmp
 #define strncasecmp  strnicmp
+#endif
 
 HINSTANCE get_lib_instance(void);