mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Corrected an issue observed on OSX
This commit is contained in:
parent
440a9e2ca4
commit
d66d642e24
@ -16,7 +16,7 @@
|
||||
|
||||
/*
|
||||
This is included in bottom
|
||||
of config.h. It is where,
|
||||
of config.h. It is where,
|
||||
typically, alternatives to
|
||||
missing functions should be
|
||||
defined and missing types defined.
|
||||
@ -42,8 +42,15 @@ typedef SSIZE_T ssize_t;
|
||||
#ifndef _WIN32
|
||||
#if __STDC__ == 1 /*supposed to be same as -ansi flag */
|
||||
extern char* strdup(const char*);
|
||||
|
||||
#ifndef strlcat
|
||||
extern size_t strlcat(char*,const char*,size_t);
|
||||
extern int snprintf(char*, size_t, const char*, ...);
|
||||
#endif
|
||||
|
||||
#ifndef snprintf
|
||||
extern int snprintf(char*, size_t, const char*, ...);
|
||||
#endif
|
||||
|
||||
extern int strcasecmp(const char*, const char*);
|
||||
extern long long int strtoll(const char*, char**, int);
|
||||
extern unsigned long long int strtoull(const char*, char**, int);
|
||||
|
@ -33,8 +33,9 @@
|
||||
#endif
|
||||
#include "ezxml.h"
|
||||
|
||||
extern int vsnprintf(char*, size_t, const char*, va_list ap);
|
||||
|
||||
#ifndef vsnprintf
|
||||
extern int vsnprintf(char*, size_t, const char*, va_list ap);
|
||||
#endif
|
||||
|
||||
#define EZXML_WS "\t\r\n " /* whitespace*/
|
||||
#define EZXML_ERRL 128 /* maximum error string length*/
|
||||
|
@ -7,7 +7,9 @@
|
||||
#include "includes.h"
|
||||
#include <ctype.h> /* for isprint() */
|
||||
|
||||
extern int vsnprintf(char*, size_t, const char*, va_list ap);
|
||||
#ifndef vsnprintf
|
||||
extern int vsnprintf(char*, size_t, const char*, va_list ap);
|
||||
#endif
|
||||
|
||||
int error_count;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user