mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-03-31 17:50:26 +08:00
Avoid duplicate definition of strcasecmp in config.h
This commit is contained in:
parent
7b3d71b718
commit
3cf75bf088
@ -57,23 +57,6 @@ are set when opening a binary file on Windows. */
|
||||
#define _OFF_T_DEFINED
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) && !defined(__MINGW32__)
|
||||
#ifndef strcasecmp
|
||||
#define strcasecmp _stricmp
|
||||
#endif
|
||||
|
||||
#ifndef strincasecmp
|
||||
#define strncasecmp _strnicmp
|
||||
#endif
|
||||
|
||||
#ifndef snprintf
|
||||
#if _MSC_VER<1900
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#define strdup _strdup
|
||||
#define fdopen _fdopen
|
||||
#define write _write
|
||||
@ -655,21 +638,6 @@ with zip */
|
||||
/* Define to `unsigned long if <sys/types.h> does not define. */
|
||||
#cmakedefine uintptr_t unsigned long
|
||||
|
||||
/* Define strcasecmp, strncasecmp, snprintf on Win32 systems. */
|
||||
#if defined(_WIN32) && !defined(__MINGW32__)
|
||||
#ifndef HAVE_STRCASECMP
|
||||
#define strcasecmp _stricmp
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRNCASECMP
|
||||
#define strncasecmp _strnicmp
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SNPRINTF
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#cmakedefine WORDS_BIGENDIAN
|
||||
|
||||
#include "ncconfigure.h"
|
||||
|
10
configure.ac
10
configure.ac
@ -1651,16 +1651,6 @@ AC_SUBST(HAS_MULTIFILTERS,[$has_multifilters])
|
||||
AC_SUBST(DO_NCZARR_ZIP_TESTS,[$enable_nczarr_zip])
|
||||
AC_SUBST(HAS_LOGGING,[$enable_logging])
|
||||
|
||||
# Include some specifics for netcdf on windows.
|
||||
#AH_VERBATIM([_WIN32_STRICMP],
|
||||
AH_BOTTOM(
|
||||
[/* Define strcasecmp, strncasecmp, snprintf on Win32 systems. */
|
||||
#if defined(_WIN32) && !defined(__MINGW32__)
|
||||
#define strcasecmp _stricmp
|
||||
#define strncasecmp _strnicmp
|
||||
#define snprintf _snprintf
|
||||
#endif])
|
||||
|
||||
# Access netcdf specific version of config.h
|
||||
AH_BOTTOM([#include "ncconfigure.h"])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user