mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-21 17:07:04 +00:00
added case insensitive string comparison macro
This commit is contained in:
parent
98a233fc40
commit
c46019cc62
1 changed files with 13 additions and 0 deletions
|
@ -108,5 +108,18 @@ int debug(int class,char *format,...);
|
|||
|
||||
#define UNIMPLEMENTED do { fprintf(stderr,"Function %s unimplemented\n",__FUNCTION__); abort(); } while(0)
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#ifndef STRNICMP
|
||||
|
||||
#ifdef _WIN32
|
||||
#define STRNICMP(a,b,n) strnicmp(a,b,n)
|
||||
#else
|
||||
#define STRNICMP(a,b,n) strncasecmp(a,b,n)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue