mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Define strcasecmp for Windows in ncconfigure.h
This commit is contained in:
parent
cb56d5af38
commit
7b3d71b718
@ -65,13 +65,28 @@ extern int fileno(FILE*);
|
||||
#endif
|
||||
|
||||
#endif /*STDC*/
|
||||
#endif /*!_WIN32*/
|
||||
|
||||
#ifdef _WIN32
|
||||
#else /*_WIN32*/
|
||||
|
||||
#ifndef HAVE_STRLCAT
|
||||
#define strlcat(d,s,n) strcat_s((d),(n),(s))
|
||||
#endif
|
||||
|
||||
#ifndef __MINGW32__
|
||||
#ifndef strcasecmp
|
||||
#define strcasecmp _stricmp
|
||||
#endif
|
||||
#ifndef strncasecmp
|
||||
#define strncasecmp _strnicmp
|
||||
#endif
|
||||
#ifndef snprintf
|
||||
#if _MSC_VER<1900
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
#endif
|
||||
#endif /*__MINGW32__*/
|
||||
|
||||
#endif /*_WIN32*/
|
||||
|
||||
/* handle null arguments */
|
||||
#ifndef nulldup
|
||||
|
Loading…
Reference in New Issue
Block a user