From: Jeffrey Altman Date: Mon, 5 Jan 2004 03:39:53 +0000 (+0000) Subject: * win-mac.h: conditionally define strcasecmp/strncasecmp macros X-Git-Tag: krb5-1.4-beta1~669 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=125b7d41ce29fb3e24112ab29705ecf55813f5dd;p=krb5.git * 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 --- 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);