mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Merge pull request #1505 from DennisHeimbigner/fixincludes.dmh
Fix includes/netcdf_xxx.h files to not include ncexternl.h
This commit is contained in:
commit
cca9ae64f6
@ -24,13 +24,20 @@ INSTALL(FILES ${netCDF_BINARY_DIR}/include/netcdf_meta.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
COMPONENT headers)
|
||||
|
||||
INSTALL(FILES ${netCDF_SOURCE_DIR}/include/netcdf_filter.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
COMPONENT headers)
|
||||
|
||||
INSTALL(FILES ${netCDF_SOURCE_DIR}/include/netcdf_dispatch.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
COMPONENT headers)
|
||||
|
||||
IF(ENABLE_PNETCDF OR ENABLE_PARALLEL4)
|
||||
INSTALL(FILES ${netCDF_SOURCE_DIR}/include/netcdf_par.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
COMPONENT headers)
|
||||
ENDIF()
|
||||
|
||||
|
||||
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} Makefile.am CMakeLists.txt)
|
||||
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
|
||||
|
@ -5,6 +5,13 @@
|
||||
* $Header$
|
||||
*********************************************************************/
|
||||
|
||||
/*
|
||||
* In order to use any of the netcdf_XXX.h files, it is necessary
|
||||
* to include netcdf.h followed by any netcdf_XXX.h files.
|
||||
* Various things (like EXTERNL) are defined in netcdf.h
|
||||
* to make them available for use by the netcdf_XXX.h files.
|
||||
*/
|
||||
|
||||
#ifndef NCAUX_H
|
||||
#define NCAUX_H
|
||||
|
||||
|
@ -1,5 +1,13 @@
|
||||
/* Copyright 2019 University Corporation for Atmospheric
|
||||
Research/Unidata. */
|
||||
|
||||
/*
|
||||
* In order to use any of the netcdf_XXX.h files, it is necessary
|
||||
* to include netcdf.h followed by any netcdf_XXX.h files.
|
||||
* Various things (like EXTERNL) are defined in netcdf.h
|
||||
* to make them available for use by the netcdf_XXX.h files.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* This header contains the definition of the dispatch table. This
|
||||
@ -15,8 +23,6 @@
|
||||
#ifndef NETCDF_DISPATCH_H
|
||||
#define NETCDF_DISPATCH_H
|
||||
|
||||
#include "netcdf.h"
|
||||
|
||||
/* This is the dispatch table, with a pointer to each netCDF
|
||||
* function. */
|
||||
struct NC_Dispatch
|
||||
|
@ -1,6 +1,13 @@
|
||||
/* Copyright 2018, UCAR/Unidata and OPeNDAP, Inc.
|
||||
See the COPYRIGHT file for more information. */
|
||||
|
||||
/*
|
||||
* In order to use any of the netcdf_XXX.h files, it is necessary
|
||||
* to include netcdf.h followed by any netcdf_XXX.h files.
|
||||
* Various things (like EXTERNL) are defined in netcdf.h
|
||||
* to make them available for use by the netcdf_XXX.h files.
|
||||
*/
|
||||
|
||||
#ifndef NETCDF_FILTER_H
|
||||
#define NETCDF_FILTER_H 1
|
||||
|
||||
|
@ -9,23 +9,16 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* In order to use any of the netcdf_XXX.h files, it is necessary
|
||||
* to include netcdf.h followed by any netcdf_XXX.h files.
|
||||
* Various things (like EXTERNL) are defined in netcdf.h
|
||||
* to make them available for use by the netcdf_XXX.h files.
|
||||
*/
|
||||
|
||||
#ifndef NETCDF_MEM_H
|
||||
#define NETCDF_MEM_H 1
|
||||
|
||||
/* Declaration modifiers for DLL support (MSC et al) */
|
||||
#if defined(DLL_NETCDF) /* define when library is a DLL */
|
||||
# if defined(DLL_EXPORT) /* define when building the library */
|
||||
# define MSC_EXTRA __declspec(dllexport)
|
||||
# else
|
||||
# define MSC_EXTRA __declspec(dllimport)
|
||||
# endif
|
||||
# include <io.h>
|
||||
#else
|
||||
#define MSC_EXTRA /**< Needed for DLL build. */
|
||||
#endif /* defined(DLL_NETCDF) */
|
||||
|
||||
#define EXTERNL MSC_EXTRA extern /**< Needed for DLL build. */
|
||||
|
||||
typedef struct NC_memio {
|
||||
size_t size;
|
||||
void* memory;
|
||||
|
@ -10,11 +10,17 @@
|
||||
* \author Ed Hartnett
|
||||
*/
|
||||
|
||||
/*
|
||||
* In order to use any of the netcdf_XXX.h files, it is necessary
|
||||
* to include netcdf.h followed by any netcdf_XXX.h files.
|
||||
* Various things (like EXTERNL) are defined in netcdf.h
|
||||
* to make them available for use by the netcdf_XXX.h files.
|
||||
*/
|
||||
|
||||
#ifndef NETCDF_PAR_H
|
||||
#define NETCDF_PAR_H 1
|
||||
|
||||
#include <mpi.h>
|
||||
#include "ncexternl.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
|
Loading…
Reference in New Issue
Block a user