mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Fix NCJTHROW definition after merge from main
This commit is contained in:
parent
7ec0ac0a08
commit
114185e84b
@ -15,8 +15,10 @@ TODO: make utf8 safe
|
||||
|
||||
#include "ncjson.h"
|
||||
|
||||
#if defined(_WIN32) && !defined(__MINGW32__)
|
||||
#define strcasecmp _stricmp
|
||||
#undef NCJDEBUG
|
||||
#ifdef NCJDEBUG
|
||||
static int ncjbreakpoint(int err) {return err;}
|
||||
#define NCJTHROW(err) ((err)==NCJ_ERR?ncjbreakpoint(err):(err))
|
||||
#else
|
||||
#define NCJTHROW(err) (err)
|
||||
#endif
|
||||
@ -60,7 +62,7 @@ typedef struct NCJbuf {
|
||||
|
||||
/**************************************************/
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32) && !defined(__MINGW32__)
|
||||
#define strdup _strdup
|
||||
#define strcasecmp _stricmp
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user