MISR Toolkit  1.5.1
szip_adpt.h
Go to the documentation of this file.
1 /*
2  * This files has neccesary definitions to provide SZIP DLL
3  * support on Windows platfroms, both MSVC and CodeWarrior
4  * compilers
5  */
6 
7 #ifndef SZAPI_ADPT_H
8 #define SZAPI_ADPT_H
9 
10 /* This will only be defined if szip was built with CMake shared libs*/
11 #ifdef SZ_BUILT_AS_DYNAMIC_LIB
12 
13 #if defined (szip_shared_EXPORTS)
14  #define _SZDLL_
15  #if defined (_MSC_VER) /* MSVC Compiler Case */
16  #define __SZ_DLL__ __declspec(dllexport)
17  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
18  #define __SZ_DLL__ __attribute__ ((visibility("default")))
19  #else
20  #define __SZ_DLL__
21  #endif
22 #else
23  #if defined (_MSC_VER) /* MSVC Compiler Case */
24  #define __SZ_DLL__ __declspec(dllimport)
25  #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
26  #define __SZ_DLL__ __attribute__ ((visibility("default")))
27  #else
28  #define __SZ_DLL__
29  #endif
30 #endif
31 
32 #else /* SZ_BUILT_AS_DYNAMIC_LIB */
33  #define __SZ_DLL__
34 #endif /* SZ_BUILT_AS_DYNAMIC_LIB */
35 
36 #endif /* H5API_ADPT_H */

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