1 /********************************************************************* 2 * Copyright 2010, UCAR/Unidata 3 * See netcdf/COPYRIGHT file for copying and redistribution conditions. 4 * $Header$ 5 *********************************************************************/ 6 7 #ifndef NCEXTERNL_H 8 #define NCEXTERNL_H 9 10 #if defined(DLL_NETCDF) /* define when library is a DLL */ 11 # if defined(DLL_EXPORT) /* define when building the library */ 12 # define MSC_EXTRA __declspec(dllexport) 13 # else 14 # define MSC_EXTRA __declspec(dllimport) 15 # endif 16 #else 17 # define MSC_EXTRA 18 #endif /* defined(DLL_NETCDF) */ 19 #ifndef EXTERNL 20 # define EXTERNL MSC_EXTRA extern 21 #endif 22 23 #endif /*NCEXTERNL_H*/ 24