Merge branch 'master' into index.dmh

This commit is contained in:
Ward Fisher 2018-03-26 17:06:19 -06:00 committed by GitHub
commit 308a840358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View File

@ -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.
#
##################################

View File

@ -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 */