mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Removing a problematic const causing issues on OSX.
This commit is contained in:
parent
cca0f8d46e
commit
d001ec8590
@ -231,9 +231,9 @@ extern int NC_inq_recvar(int ncid, int varid, int* nrecdims, int* is_recdim);
|
||||
#endif
|
||||
|
||||
/* Vectors of ones and zeros */
|
||||
extern const size_t NC_coord_zero[NC_MAX_VAR_DIMS];
|
||||
extern const size_t NC_coord_one[NC_MAX_VAR_DIMS];
|
||||
extern const ptrdiff_t NC_stride_one[NC_MAX_VAR_DIMS];
|
||||
extern size_t NC_coord_zero[NC_MAX_VAR_DIMS];
|
||||
extern size_t NC_coord_one[NC_MAX_VAR_DIMS];
|
||||
extern ptrdiff_t NC_stride_one[NC_MAX_VAR_DIMS];
|
||||
|
||||
extern int NC_initialized;
|
||||
|
||||
|
@ -27,9 +27,9 @@ See LICENSE.txt for license information.
|
||||
#endif
|
||||
|
||||
/* Define vectors of zeros and ones for use with various nc_get_varX function*/
|
||||
const size_t NC_coord_zero[NC_MAX_VAR_DIMS];
|
||||
const size_t NC_coord_one[NC_MAX_VAR_DIMS];
|
||||
const ptrdiff_t NC_stride_one[NC_MAX_VAR_DIMS];
|
||||
size_t NC_coord_zero[NC_MAX_VAR_DIMS] = {0};
|
||||
size_t NC_coord_one[NC_MAX_VAR_DIMS] = {1};
|
||||
ptrdiff_t NC_stride_one[NC_MAX_VAR_DIMS] = {1};
|
||||
|
||||
NCRCglobalstate ncrc_globalstate;
|
||||
|
||||
@ -127,7 +127,7 @@ NCDISPATCH_initialize(void)
|
||||
|
||||
/* Initialize curl if it is being used */
|
||||
#if defined(ENABLE_BYTERANGE) || defined(ENABLE_DAP) || defined(ENABLE_DAP4)
|
||||
{
|
||||
{
|
||||
CURLcode cstat = curl_global_init(CURL_GLOBAL_ALL);
|
||||
if(cstat != CURLE_OK)
|
||||
status = NC_ECURL;
|
||||
@ -146,4 +146,3 @@ NCDISPATCH_finalize(void)
|
||||
#endif
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user