UltraScan III
us_extern.h
Go to the documentation of this file.
1 #ifndef US_EXTERN_H
2 #define US_EXTERN_H
3 
4 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
5  #define US_EXPORT __declspec(dllexport)
6  #define US_IMPORT __declspec(dllimport)
7 
8  #if defined(US_MAKE_UTIL_DLL)
9  #define US_UTIL_EXTERN US_EXPORT
10  #else
11  #define US_UTIL_EXTERN US_IMPORT
12  #endif
13 
14  #if defined(US_MAKE_GUI_DLL)
15  #define US_GUI_EXTERN US_EXPORT
16  #else
17  #define US_GUI_EXTERN US_IMPORT
18  #endif
19 
20  #if defined(US_MAKE_DLL)
21  #if !defined(US_GUI_EXTERN)
22  #define US_GUI_EXTERN US_EXPORT
23  #endif
24  #if !defined(US_UTIL_EXTERN)
25  #define US_UTIL_EXTERN US_EXPORT
26  #endif
27  #define US_EXTERN US_EXPORT
28  #else
29  #if !defined(US_GUI_EXTERN)
30  #define US_GUI_EXTERN US_IMPORT
31  #endif
32  #if !defined(US_UTIL_EXTERN)
33  #define US_UTIL_EXTERN US_IMPORT
34  #endif
35  #define US_EXTERN US_IMPORT
36  #endif
37 #endif
38 
39 #if !defined(US_EXPORT)
40  #define US_EXPORT
41 #endif
42 
43 #if !defined(US_IMPORT)
44  #define US_IMPORT
45 #endif
46 
47 #if !defined(US_UTIL_EXTERN)
48  #define US_UTIL_EXTERN
49 #endif
50 
51 #if !defined(US_GUI_EXTERN)
52  #define US_GUI_EXTERN
53 #endif
54 
55 #endif
56