Grok  9.7.5
highway_export.h
Go to the documentation of this file.
1 // Pseudo-generated file to handle both cmake & bazel build system.
2 
3 // Initial generation done using cmake code:
4 // include(GenerateExportHeader)
5 // generate_export_header(hwy EXPORT_MACRO_NAME HWY_DLLEXPORT EXPORT_FILE_NAME
6 // hwy/highway_export.h)
7 // code reformatted using clang-format --style=Google
8 
9 #ifndef HWY_DLLEXPORT_H
10 #define HWY_DLLEXPORT_H
11 
12 // Bazel build are always static:
13 #if !defined(HWY_SHARED_DEFINE) && !defined(HWY_STATIC_DEFINE)
14 #define HWY_STATIC_DEFINE
15 #endif
16 
17 #ifdef HWY_STATIC_DEFINE
18 #define HWY_DLLEXPORT
19 #define HWY_NO_EXPORT
20 #define HWY_CONTRIB_DLLEXPORT
21 #define HWY_CONTRIB_NO_EXPORT
22 #define HWY_TEST_DLLEXPORT
23 #define HWY_TEST_NO_EXPORT
24 #else
25 
26 #ifndef HWY_DLLEXPORT
27 #if defined(hwy_EXPORTS)
28 /* We are building this library */
29 #ifdef _WIN32
30 #define HWY_DLLEXPORT __declspec(dllexport)
31 #else
32 #define HWY_DLLEXPORT __attribute__((visibility("default")))
33 #endif
34 #else
35 /* We are using this library */
36 #ifdef _WIN32
37 #define HWY_DLLEXPORT __declspec(dllimport)
38 #else
39 #define HWY_DLLEXPORT __attribute__((visibility("default")))
40 #endif
41 #endif
42 #endif
43 
44 #ifndef HWY_NO_EXPORT
45 #ifdef _WIN32
46 #define HWY_NO_EXPORT
47 #else
48 #define HWY_NO_EXPORT __attribute__((visibility("hidden")))
49 #endif
50 #endif
51 
52 #ifndef HWY_CONTRIB_DLLEXPORT
53 #if defined(hwy_contrib_EXPORTS)
54 /* We are building this library */
55 #ifdef _WIN32
56 #define HWY_CONTRIB_DLLEXPORT __declspec(dllexport)
57 #else
58 #define HWY_CONTRIB_DLLEXPORT __attribute__((visibility("default")))
59 #endif
60 #else
61 /* We are using this library */
62 #ifdef _WIN32
63 #define HWY_CONTRIB_DLLEXPORT __declspec(dllimport)
64 #else
65 #define HWY_CONTRIB_DLLEXPORT __attribute__((visibility("default")))
66 #endif
67 #endif
68 #endif
69 
70 #ifndef HWY_CONTRIB_NO_EXPORT
71 #ifdef _WIN32
72 #define HWY_CONTRIB_NO_EXPORT
73 #else
74 #define HWY_CONTRIB_NO_EXPORT __attribute__((visibility("hidden")))
75 #endif
76 #endif
77 
78 #ifndef HWY_TEST_DLLEXPORT
79 #if defined(hwy_test_EXPORTS)
80 /* We are building this library */
81 #ifdef _WIN32
82 #define HWY_TEST_DLLEXPORT __declspec(dllexport)
83 #else
84 #define HWY_TEST_DLLEXPORT __attribute__((visibility("default")))
85 #endif
86 #else
87 /* We are using this library */
88 #ifdef _WIN32
89 #define HWY_TEST_DLLEXPORT __declspec(dllimport)
90 #else
91 #define HWY_TEST_DLLEXPORT __attribute__((visibility("default")))
92 #endif
93 #endif
94 #endif
95 
96 #ifndef HWY_TEST_NO_EXPORT
97 #ifdef _WIN32
98 #define HWY_TEST_NO_EXPORT
99 #else
100 #define HWY_TEST_NO_EXPORT __attribute__((visibility("hidden")))
101 #endif
102 #endif
103 
104 #endif
105 
106 #endif /* HWY_DLLEXPORT_H */