14 * Description: EAP and WLAN authentication protocols. |
14 * Description: EAP and WLAN authentication protocols. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: % |
19 * %version: 4.1.8 % |
20 */ |
20 */ |
21 |
21 |
22 #if !defined( _EAP_EXPORT_H_ ) |
22 #if !defined( _EAP_AM_EXPORT_H_ ) |
23 #define _EAP_EXPORT_H_ |
23 #define _EAP_AM_EXPORT_H_ |
24 |
24 |
25 #if defined(EAP_NO_EXPORTS) |
25 #if defined(EAP_NO_EXPORTS) |
26 // No exports are needed. |
26 // No exports are needed. |
27 #define EAP_FUNC_IMPORT |
27 #if defined(__WINS__) |
28 #define EAP_FUNC_EXPORT |
28 #define EAP_FUNC_IMPORT |
29 #define EAP_C_FUNC_IMPORT |
29 #define EAP_FUNC_EXPORT |
30 #define EAP_C_FUNC_EXPORT |
30 #define EAP_C_FUNC_IMPORT |
31 #define EAP_FUNC_IMPORT_EMPTY |
31 #define EAP_C_FUNC_EXPORT |
32 #define EAP_FUNC_EXPORT_EMPTY |
32 #define EAP_FUNC_IMPORT_EMPTY |
33 #define EAP_EXPORT |
33 #define EAP_FUNC_EXPORT_EMPTY |
34 #define EAP_NONSHARABLE_CLASS |
34 #define EAP_EXPORT |
|
35 #define EAP_IMPORT |
|
36 #define EAP_SHARABLE |
|
37 #define EAP_NONSHARABLE |
|
38 #define EAP_NONSHARABLE_CLASS |
|
39 #else |
|
40 #define EAP_FUNC_IMPORT __declspec(dllimport) |
|
41 #define EAP_FUNC_EXPORT |
|
42 #define EAP_C_FUNC_IMPORT __declspec(dllimport) |
|
43 #define EAP_C_FUNC_EXPORT |
|
44 #define EAP_FUNC_IMPORT_EMPTY |
|
45 #define EAP_FUNC_EXPORT_EMPTY |
|
46 #define EAP_EXPORT __declspec(notshared) /* This is used marking a class non-sharable. */ |
|
47 #define EAP_IMPORT |
|
48 #define EAP_SHARABLE |
|
49 #define EAP_NONSHARABLE __declspec(notshared) |
|
50 #define EAP_NONSHARABLE_CLASS |
|
51 #endif |
35 #if defined(__WINS__) |
52 #if defined(__WINS__) |
36 #pragma warning( disable : 4355 ) |
53 #pragma warning( disable : 4355 ) |
37 #endif /* defined(__WINS__) */ |
54 #endif /* defined(__WINS__) */ |
38 #elif defined(__SYMBIAN32__) |
55 #elif defined(__SYMBIAN32__) |
39 // This is Symbian compilation. |
56 // This is Symbian compilation. |
40 #define EAP_FUNC_IMPORT IMPORT_C |
|
41 #define EAP_FUNC_EXPORT EXPORT_C |
|
42 #define EAP_C_FUNC_IMPORT IMPORT_C |
|
43 #define EAP_C_FUNC_EXPORT EXPORT_C |
|
44 #define EAP_FUNC_IMPORT_EMPTY |
|
45 #define EAP_FUNC_EXPORT_EMPTY |
|
46 #define EAP_EXPORT |
|
47 #if defined(__WINS__) |
57 #if defined(__WINS__) |
48 #define EAP_NONSHARABLE_CLASS |
58 #define EAP_FUNC_IMPORT |
|
59 #define EAP_FUNC_EXPORT __declspec(dllexport) |
|
60 #define EAP_C_FUNC_IMPORT |
|
61 #define EAP_C_FUNC_EXPORT __declspec(dllexport) |
|
62 #define EAP_FUNC_IMPORT_EMPTY |
|
63 #define EAP_FUNC_EXPORT_EMPTY |
|
64 #define EAP_EXPORT |
|
65 #define EAP_IMPORT |
|
66 #define EAP_SHARABLE |
|
67 #define EAP_NONSHARABLE |
|
68 #define EAP_NONSHARABLE_CLASS __declspec(notshared) |
49 #else |
69 #else |
|
70 #define EAP_FUNC_IMPORT __declspec(dllimport) |
|
71 #define EAP_FUNC_EXPORT __declspec(dllexport) |
|
72 #define EAP_C_FUNC_IMPORT __declspec(dllimport) |
|
73 #define EAP_C_FUNC_EXPORT __declspec(dllexport) |
|
74 #define EAP_FUNC_IMPORT_EMPTY |
|
75 #define EAP_FUNC_EXPORT_EMPTY |
|
76 #define EAP_EXPORT |
|
77 #define EAP_IMPORT |
|
78 #define EAP_SHARABLE |
|
79 #define EAP_NONSHARABLE __declspec(notshared) |
50 #define EAP_NONSHARABLE_CLASS __declspec(notshared) |
80 #define EAP_NONSHARABLE_CLASS __declspec(notshared) |
51 #endif |
81 #endif |
52 #if defined(__WINS__) |
82 #if defined(__WINS__) |
53 #pragma warning( disable : 4355 ) |
83 #pragma warning( disable : 4355 ) |
54 #endif /* defined(__WINS__) */ |
84 #endif /* defined(__WINS__) */ |
59 #define EAP_C_FUNC_IMPORT |
89 #define EAP_C_FUNC_IMPORT |
60 #define EAP_C_FUNC_EXPORT |
90 #define EAP_C_FUNC_EXPORT |
61 #define EAP_FUNC_IMPORT_EMPTY |
91 #define EAP_FUNC_IMPORT_EMPTY |
62 #define EAP_FUNC_EXPORT_EMPTY |
92 #define EAP_FUNC_EXPORT_EMPTY |
63 #define EAP_EXPORT |
93 #define EAP_EXPORT |
|
94 #define EAP_IMPORT |
|
95 #define EAP_SHARABLE |
|
96 #define EAP_NONSHARABLE |
64 #define EAP_NONSHARABLE_CLASS |
97 #define EAP_NONSHARABLE_CLASS |
65 #elif defined(__GNUC__) |
98 #elif defined(__GNUC__) |
66 // This is cygwin compilation. |
99 // This is cygwin compilation. |
67 #define EAP_FUNC_IMPORT __declspec(dllexport) |
100 #define EAP_FUNC_IMPORT __declspec(dllexport) |
68 #define EAP_FUNC_EXPORT |
101 #define EAP_FUNC_EXPORT |
69 #define EAP_C_FUNC_IMPORT __declspec(dllexport) |
102 #define EAP_C_FUNC_IMPORT __declspec(dllexport) |
70 #define EAP_C_FUNC_EXPORT |
103 #define EAP_C_FUNC_EXPORT |
71 #define EAP_FUNC_IMPORT_EMPTY |
104 #define EAP_FUNC_IMPORT_EMPTY |
72 #define EAP_FUNC_EXPORT_EMPTY |
105 #define EAP_FUNC_EXPORT_EMPTY |
73 #define EAP_EXPORT __declspec(dllexport) |
106 #define EAP_EXPORT __declspec(dllexport) |
|
107 #define EAP_IMPORT |
|
108 #define EAP_SHARABLE |
|
109 #define EAP_NONSHARABLE |
74 #define EAP_NONSHARABLE_CLASS |
110 #define EAP_NONSHARABLE_CLASS |
75 #elif defined(_WIN32) && !defined(__GNUC__) |
111 #elif defined(_WIN32) && !defined(__GNUC__) |
76 // This is windows compilation. |
112 // This is windows compilation. |
77 #define EAP_FUNC_IMPORT |
113 #define EAP_FUNC_IMPORT |
78 #define EAP_FUNC_EXPORT |
114 #define EAP_FUNC_EXPORT |
79 #define EAP_C_FUNC_IMPORT __declspec(dllexport) |
115 #define EAP_C_FUNC_IMPORT |
80 #define EAP_C_FUNC_EXPORT |
116 #define EAP_C_FUNC_EXPORT |
81 #define EAP_FUNC_IMPORT_EMPTY |
117 #define EAP_FUNC_IMPORT_EMPTY |
82 #define EAP_FUNC_EXPORT_EMPTY |
118 #define EAP_FUNC_EXPORT_EMPTY |
83 #define EAP_EXPORT __declspec(dllexport) |
119 #define EAP_EXPORT |
84 #define EAP_NONSHARABLE_CLASS |
120 #define EAP_IMPORT |
|
121 #define EAP_SHARABLE |
|
122 #define EAP_NONSHARABLE |
|
123 #define EAP_NONSHARABLE_CLASS |
85 #if defined(__WINS__) |
124 #if defined(__WINS__) |
86 #pragma warning( disable : 4355 ) |
125 #pragma warning( disable : 4355 ) |
87 #endif /* defined(__WINS__) */ |
126 #endif /* defined(__WINS__) */ |
88 #endif |
127 #endif |
89 |
128 |
|
129 #if 0 |
90 // This is for separate exports of interface functions. |
130 // This is for separate exports of interface functions. |
91 #if defined(USE_EAP_INTERFACE_EXPORTS) |
131 #if defined(USE_EAP_INTERFACE_EXPORTS) |
92 #if defined(__SYMBIAN32__) |
132 #if defined(__SYMBIAN32__) |
93 #define EAP_FUNC_IMPORT_INTERFACE IMPORT_C |
133 #define EAP_FUNC_IMPORT_INTERFACE IMPORT_C |
94 #define EAP_FUNC_EXPORT_INTERFACE EXPORT_C |
134 #define EAP_FUNC_EXPORT_INTERFACE EXPORT_C |