mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Merge branch 'master' into index.dmh
This commit is contained in:
commit
308a840358
@ -1,5 +1,5 @@
|
||||
## This is a CMake file, part of Unidata's netCDF package.
|
||||
# Copyright 2012-2014, see the COPYRIGHT file for more information.
|
||||
# Copyright 2012-2018, see the COPYRIGHT file for more information.
|
||||
#
|
||||
|
||||
##################################
|
||||
|
@ -26,10 +26,12 @@ defined and missing types defined.
|
||||
extern char* strdup(const char*);
|
||||
#endif
|
||||
|
||||
/*
|
||||
#ifndef HAVE_SSIZE_T
|
||||
#define ssize_t long
|
||||
typedef long ssize_t;
|
||||
#define HAVE_SSIZE_T
|
||||
#endif
|
||||
|
||||
*/
|
||||
/* handle null arguments */
|
||||
#ifndef nulldup
|
||||
#ifdef HAVE_STRDUP
|
||||
@ -39,6 +41,13 @@ char *nulldup(const char* s);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#ifndef HAVE_SSIZE_T
|
||||
#include <basetsd.h>
|
||||
typedef SSIZE_T ssize_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRLCAT
|
||||
#ifdef _MSC_VER
|
||||
/* Windows strlcat_s is equivalent to strlcat, but different arg order */
|
||||
|
Loading…
Reference in New Issue
Block a user