H5api_adpt.h

00001 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00002  * Copyright by The HDF Group.                                               *
00003  * Copyright by the Board of Trustees of the University of Illinois.         *
00004  * All rights reserved.                                                      *
00005  *                                                                           *
00006  * This file is part of HDF5.  The full HDF5 copyright notice, including     *
00007  * terms governing use, modification, and redistribution, is contained in    *
00008  * the files COPYING and Copyright.html.  COPYING can be found at the root   *
00009  * of the source code distribution tree; Copyright.html can be found at the  *
00010  * root level of an installed copy of the electronic HDF5 document set and   *
00011  * is linked from the top-level documents page.  It can also be found at     *
00012  * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
00013  * access to either file, you may request a copy from help@hdfgroup.org.     *
00014  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00015 
00016 /*
00017  * H5api_adpt.h
00018  * Used for the HDF5 dll project
00019  * Created by Patrick Lu on 1/12/99
00020  */
00021 #ifndef H5API_ADPT_H
00022 #define H5API_ADPT_H
00023 
00024 #if defined(_WIN32)
00025 
00026 #if defined(_HDF5DLL_)
00027 #pragma warning(disable: 4273)  /* Disable the dll linkage warnings */
00028 #define H5_DLL __declspec(dllexport)
00029 #define H5_DLLVAR extern __declspec(dllexport)
00030 #elif defined(_HDF5USEDLL_)
00031 #define H5_DLL __declspec(dllimport)
00032 #define H5_DLLVAR __declspec(dllimport)
00033 #else
00034 #define H5_DLL
00035 #define H5_DLLVAR extern
00036 #endif /* _HDF5DLL_ */
00037 
00038 #if defined(_HDF5TESTDLL_)
00039 #pragma warning(disable: 4273)  /* Disable the dll linkage warnings */
00040 #define H5TEST_DLL __declspec(dllexport)
00041 #define H5TEST_DLLVAR extern __declspec(dllexport)
00042 #elif defined(_HDF5TESTUSEDLL_)
00043 #define H5TEST_DLL __declspec(dllimport)
00044 #define H5TEST_DLLVAR __declspec(dllimport)
00045 #else
00046 #define H5TEST_DLL
00047 #define H5TEST_DLLVAR extern
00048 #endif /* _HDF5TESTDLL_ */
00049 
00050 #if defined(_HDF5_HLDLL_EXPORTS_)
00051 #pragma warning(disable: 4273)  /* Disable the dll linkage warnings */
00052 #define H5_HLDLL __declspec(dllexport)
00053 #elif defined(_HDF5USEHLDLL_)
00054 #define H5_HLDLL __declspec(dllimport)
00055 #else
00056 #define H5_HLDLL
00057 #endif /* _HDF5_HLDLL_EXPORTS */
00058 
00059 #if defined(HDF5_HL_CPPDLL_EXPORTS)
00060 #pragma warning(disable: 4273)  /* Disable the dll linkage warnings */
00061 #define H5_HLCPPDLL __declspec(dllexport)
00062 #elif defined(HDF5USE_HLCPPDLL)
00063 #define H5_HLCPPDLL __declspec(dllimport)
00064 #else
00065 #define H5_HLCPPDLL
00066 #endif /*HDF5_HL_CPPDLL_EXPORTS*/
00067 
00068 #if defined(HDF5_HL_F90CSTUBDLL_EXPORTS)
00069 #pragma warning(disable: 4273)  /* Disable the dll linkage warnings */
00070 #define HDF5_HL_F90CSTUBDLL __declspec(dllexport)
00071 #elif defined(HDF5USE_HLF90CSTUBDLL)
00072 #define HDF5_HL_F90CSTUBDLL __declspec(dllimport)
00073 #else
00074 #define HDF5_HL_F90CSTUBDLL
00075 #endif /*HDF5_HL_F90CSTUBDLL_EXPORTS*/
00076 
00077 
00078 #if defined(HDF5FORT_CSTUB_DLL_EXPORTS)
00079 #pragma warning(disable: 4273)  /* Disable the dll linkage warnings */
00080 #define H5_FCDLL __declspec(dllexport)
00081 #define H5_FCDLLVAR extern __declspec(dllexport)
00082 #elif defined(HDF5FORT_CSTUB_USEDLL)
00083 #define H5_FCDLL __declspec(dllimport)
00084 #define H5_FCDLLVAR __declspec(dllimport)
00085 #else
00086 #define H5_FCDLL
00087 #define H5_FCDLLVAR extern
00088 #endif /* _HDF5_FORTRANDLL_EXPORTS_ */
00089 
00090 #if defined(HDF5FORTTEST_CSTUB_DLL_EXPORTS)
00091 #pragma warning(disable: 4273)  /* Disable the dll linkage warnings */
00092 #define H5_FCTESTDLL __declspec(dllexport)
00093 #define H5_FCTESTDLLVAR extern __declspec(dllexport)
00094 #elif defined(HDF5FORTTEST_CSTUB_USEDLL)
00095 #define H5_FCTESTDLL __declspec(dllimport)
00096 #define H5_FCTESTDLLVAR __declspec(dllimport)
00097 #else
00098 #define H5_FCTESTDLL
00099 #define H5_FCTESTDLLVAR extern
00100 #endif /* _HDF5_FORTRANDLL_EXPORTS_ */
00101 
00102 /* Added to export or to import C++ APIs - BMR (02-15-2002) */
00103 #if defined(HDF5_CPPDLL_EXPORTS) /* this name is generated at creation */
00104 #define H5_DLLCPP __declspec(dllexport)
00105 #elif defined(HDF5CPP_USEDLL)
00106 #define H5_DLLCPP __declspec(dllimport)
00107 #else
00108 #define H5_DLLCPP
00109 #endif /* HDF5_CPPDLL_EXPORTS */
00110 
00111 #else /*_WIN32*/
00112 #define H5_DLL
00113 #define H5_HLDLL
00114 #define H5_HLCPPDLL
00115 #define HDF5_HL_F90CSTUBDLL
00116 #define H5_DLLVAR extern
00117 #define H5_DLLCPP
00118 #define H5TEST_DLL
00119 #define H5TEST_DLLVAR extern
00120 #define H5_FCDLL
00121 #define H5_FCDLLVAR extern
00122 #define H5_FCTESTDLL
00123 #define H5_FCTESTDLLVAR extern
00124 #endif
00125 
00126 #endif /* H5API_ADPT_H */
00127