From 125b7d41ce29fb3e24112ab29705ecf55813f5dd Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 5 Jan 2004 03:39:53 +0000 Subject: [PATCH] * win-mac.h: conditionally define strcasecmp/strncasecmp macros 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 | 5 +++++ src/include/win-mac.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 5ca7de2e1..fdfcce86d 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,8 @@ +2004-01-04 Jeffrey Altman + + * win-mac.h: conditionally define strcasecmp/strncasecmp macros + only if they do not already exist. + 2003-12-23 Ken Raeburn * configure.in: Check for flock, fchmod, chmod, strftime, diff --git a/src/include/win-mac.h b/src/include/win-mac.h index b7519d752..d1ad62bef 100644 --- a/src/include/win-mac.h +++ b/src/include/win-mac.h @@ -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); -- 2.26.2