Avoid duplicate definition of strcasecmp in config.h

This commit is contained in:
Milton Woods 2021-09-05 17:14:36 +10:00
parent 7b3d71b718
commit 3cf75bf088
2 changed files with 0 additions and 42 deletions

View File

@ -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"

View File

@ -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"])