MISR Toolkit  1.5.1
H4api_adpt.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * Copyright by The HDF Group. *
3  * Copyright by the Board of Trustees of the University of Illinois. *
4  * All rights reserved. *
5  * *
6  * This file is part of HDF. The full HDF copyright notice, including *
7  * terms governing use, modification, and redistribution, is contained in *
8  * the COPYING file, which can be found at the root of the source code *
9  * distribution tree, or in https://support.hdfgroup.org/ftp/HDF/releases/. *
10  * If you do not have access to either file, you may request a copy from *
11  * help@hdfgroup.org. *
12  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13 
14 /* $Id: hdfi.h 5435 2010-08-11 17:31:24Z byrn $ */
15 
16 #ifndef H4API_ADPT_H
17 #define H4API_ADPT_H
18 
19 #include "h4config.h"
20 
28 /* This will only be defined if HDF4 was built with CMake */
29 #if defined(H4_BUILT_AS_DYNAMIC_LIB)
30 
31 #if defined(xdr_shared_EXPORTS)
32  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
33  #define XDRLIBAPI extern __declspec(dllexport)
34  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
35  #define XDRLIBAPI extern __attribute__ ((visibility("default")))
36  #endif
37 #endif /* xdr_shared_EXPORTS */
38 
39 #if defined(hdf_shared_EXPORTS)
40  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
41  #define HDFERRPUBLIC __declspec(dllimport)
42  #define HDFPUBLIC __declspec(dllexport)
43  #define HDFLIBAPI extern __declspec(dllexport)
44  #define HDFFCLIBAPI extern __declspec(dllimport)
45  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
46  #define HDFERRPUBLIC extern __attribute__ ((visibility("default")))
47  #define HDFPUBLIC __attribute__ ((visibility("default")))
48  #define HDFLIBAPI extern __attribute__ ((visibility("default")))
49  #define HDFFCLIBAPI extern __attribute__ ((visibility("default")))
50  #endif
51 #endif /* hdf_shared_EXPORTS */
52 
53 #if defined(hdf_fcstub_shared_EXPORTS)
54  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
55  #define HDFPUBLIC __declspec(dllexport)
56  #define HDFLIBAPI extern __declspec(dllimport)
57  #define HDFFCLIBAPI extern __declspec(dllexport)
58  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
59  #define HDFPUBLIC __attribute__ ((visibility("default")))
60  #define HDFLIBAPI extern __attribute__ ((visibility("default")))
61  #define HDFFCLIBAPI extern __attribute__ ((visibility("default")))
62  #endif
63 #endif /* hdf_fcstub_shared_EXPORTS */
64 
65 #if defined(mfhdf_shared_EXPORTS)
66  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
67  #define HDFERRPUBLIC extern __declspec(dllimport)
68  #define HDFPUBLIC __declspec(dllimport)
69  #define HDFLIBAPI extern __declspec(dllexport)
70  #define HDFFCLIBAPI extern __declspec(dllimport)
71  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
72  #define HDFERRPUBLIC extern __attribute__ ((visibility("default")))
73  #define HDFPUBLIC __attribute__ ((visibility("default")))
74  #define HDFLIBAPI extern __attribute__ ((visibility("default")))
75  #define HDFFCLIBAPI extern __attribute__ ((visibility("default")))
76  #endif
77 #endif /* mfhdf_shared_EXPORTS */
78 
79 #if defined(mfhdf_fcstub_shared_EXPORTS)
80  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
81  #define HDFPUBLIC __declspec(dllimport)
82  #define HDFLIBAPI extern __declspec(dllimport)
83  #define HDFFCLIBAPI extern __declspec(dllexport)
84  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
85  #define HDFPUBLIC __attribute__ ((visibility("default")))
86  #define HDFLIBAPI extern __attribute__ ((visibility("default")))
87  #define HDFFCLIBAPI extern __attribute__ ((visibility("default")))
88  #endif
89 #endif /* mfhdf_shared_fcstub_EXPORTS */
90 
91 #if defined(hdf_test_fcstub_shared_EXPORTS)
92  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
93  #define HDFFCLIBAPI extern __declspec(dllexport)
94  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
95  #define HDFFCLIBAPI extern __attribute__ ((visibility("default")))
96  #endif
97 #endif/* hdf_test_fcstub_shared_EXPORTS */
98 
99 #if defined(mfhdf_hdiff_shared_EXPORTS)
100  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
101  #define HDFPUBLIC __declspec(dllimport)
102  #define HDFLIBAPI extern __declspec(dllimport)
103  #define HDFTOOLSAPI extern __declspec(dllexport)
104  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
105  #define HDFPUBLIC __attribute__ ((visibility("default")))
106  #define HDFLIBAPI extern __attribute__ ((visibility("default")))
107  #define HDFTOOLSAPI extern __attribute__ ((visibility("default")))
108  #endif
109 #endif /* mfhdf_hdiff_shared_EXPORTS */
110 
111 #if defined(mfhdf_hrepack_shared_EXPORTS)
112  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
113  #define HDFPUBLIC __declspec(dllimport)
114  #define HDFLIBAPI extern __declspec(dllimport)
115  #define HDFTOOLSAPI extern __declspec(dllexport)
116  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
117  #define HDFPUBLIC __attribute__ ((visibility("default")))
118  #define HDFLIBAPI extern __attribute__ ((visibility("default")))
119  #define HDFTOOLSAPI extern __attribute__ ((visibility("default")))
120  #endif
121 #endif /* mfhdf_hrepack_shared_EXPORTS */
122 
123 #if !defined(XDRLIBAPI)
124  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
125  #define XDRLIBAPI extern __declspec(dllimport)
126  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
127  #define XDRLIBAPI extern __attribute__ ((visibility("default")))
128  #endif
129 #endif
130 #if !defined(HDFERRPUBLIC)
131  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
132  #define HDFERRPUBLIC extern __declspec(dllimport)
133  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
134  #define HDFERRPUBLIC extern __attribute__ ((visibility("default")))
135  #endif
136 #endif
137 #if !defined(HDFPUBLIC)
138  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
139  #define HDFPUBLIC __declspec(dllimport)
140  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
141  #define HDFPUBLIC __attribute__ ((visibility("default")))
142  #endif
143 #endif
144 #if !defined(HDFLIBAPI)
145  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
146  #define HDFLIBAPI extern __declspec(dllimport)
147  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
148  #define HDFLIBAPI extern __attribute__ ((visibility("default")))
149  #endif
150 #endif
151 #if !defined(HDFFCLIBAPI)
152  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
153  #define HDFFCLIBAPI extern __declspec(dllimport)
154  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
155  #define HDFFCLIBAPI extern __attribute__ ((visibility("default")))
156  #endif
157 #endif
158 #if !defined(HDFTOOLSAPI)
159  #if defined (_MSC_VER) || defined(__MINGW32__) /* MSVC Compiler Case */
160  #define HDFTOOLSAPI extern __declspec(dllimport)
161  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
162  #define HDFTOOLSAPI extern __attribute__ ((visibility("default")))
163  #endif
164 #endif
165 
166 #else
167 # define XDRLIBAPI extern
168 # define HDFERRPUBLIC extern
169 # define HDFPUBLIC
170 # define HDFLIBAPI extern
171 # define HDFFCLIBAPI extern
172 # define HDFTOOLSAPI extern
173 #endif /*H4_BUILT_AS_DYNAMIC_LIB */
174 
175 
176 #endif /* H4API_ADPT_H */

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:52