Use strcasecmp definitions from config.h

This commit is contained in:
Milton Woods 2021-09-05 17:15:36 +10:00
parent 3cf75bf088
commit 4fa91d8241
8 changed files with 3 additions and 23 deletions

View File

@ -17,7 +17,6 @@
#if defined(_WIN32) && !defined(__MINGW32__)
#include "XGetopt.h"
#define snprintf _snprintf
#endif
#include "netcdf.h"

View File

@ -12,14 +12,9 @@ TODO: make utf8 safe
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "config.h"
#include "ncjson.h"
#if defined(_WIN32) && !defined(__MINGW32__)
#define strcasecmp _stricmp
#else
#include <strings.h>
#endif
#undef DEBUG
#define NCJ_OK 0

View File

@ -3,13 +3,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "config.h"
#include "nclist.h"
#if defined(_WIN32) && !defined(__MINGW32__)
#define strcasecmp _stricmp
#endif
int nclistnull(void* e) {return e == NULL;}
#ifndef TRUE

View File

@ -15,7 +15,6 @@
#if defined(_WIN32) && !defined(__MINGW32__)
#include "XGetopt.h"
#define snprintf _snprintf
#endif
#ifdef HAVE_UNISTD_H

View File

@ -11,7 +11,6 @@ Research/Unidata. See \ref copyright file for more info. */
#if defined(_WIN32) && !defined(__MINGW32__)
#include "XGetopt.h"
#define snprintf _snprintf
#endif
#ifdef HAVE_UNISTD_H

View File

@ -76,7 +76,6 @@ THIS SOFTWARE.
#if defined(_WIN32) && !defined(__MINGW32__)
#include <io.h>
#include "XGetopt.h"
#define snprintf _snprintf
#endif
#define X_ALIGN 4

View File

@ -6,13 +6,7 @@
* $Header: /upc/share/CVS/netcdf-3/ncgen/ncgen.h,v 1.18 2010/06/01 15:34:53 ed Exp $
*********************************************************************/
#ifdef _WIN32
#include <float.h>
#include "isnan.h"
#ifndef __MINGW32__
#define strcasecmp _stricmp
#endif
#endif
#include "config.h"
#ifdef USE_NETCDF4
#define CLASSICONLY 0

View File

@ -17,7 +17,6 @@
#if defined(_WIN32) && !defined(__MINGW32__)
#include "XGetopt.h"
#define snprintf _snprintf
#endif
#include "netcdf.h"