Grok 12.0.1
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#if !defined(HWY_SHARED_DEFINE)
13#define HWY_DLLEXPORT
14#define HWY_CONTRIB_DLLEXPORT
15#define HWY_TEST_DLLEXPORT
16#else // !HWY_SHARED_DEFINE
17
18#ifndef HWY_DLLEXPORT
19#if defined(hwy_EXPORTS)
20/* We are building this library */
21#ifdef _WIN32
22#define HWY_DLLEXPORT __declspec(dllexport)
23#else
24#define HWY_DLLEXPORT __attribute__((visibility("default")))
25#endif
26#else // defined(hwy_EXPORTS)
27/* We are using this library */
28#ifdef _WIN32
29#define HWY_DLLEXPORT __declspec(dllimport)
30#else
31#define HWY_DLLEXPORT __attribute__((visibility("default")))
32#endif
33#endif // defined(hwy_EXPORTS)
34#endif // HWY_DLLEXPORT
35
36#ifndef HWY_CONTRIB_DLLEXPORT
37#if defined(hwy_contrib_EXPORTS)
38/* We are building this library */
39#ifdef _WIN32
40#define HWY_CONTRIB_DLLEXPORT __declspec(dllexport)
41#else
42#define HWY_CONTRIB_DLLEXPORT __attribute__((visibility("default")))
43#endif
44#else // defined(hwy_contrib_EXPORTS)
45/* We are using this library */
46#ifdef _WIN32
47#define HWY_CONTRIB_DLLEXPORT __declspec(dllimport)
48#else
49#define HWY_CONTRIB_DLLEXPORT __attribute__((visibility("default")))
50#endif
51#endif // defined(hwy_contrib_EXPORTS)
52#endif // HWY_CONTRIB_DLLEXPORT
53
54#ifndef HWY_TEST_DLLEXPORT
55#if defined(hwy_test_EXPORTS)
56/* We are building this library */
57#ifdef _WIN32
58#define HWY_TEST_DLLEXPORT __declspec(dllexport)
59#else
60#define HWY_TEST_DLLEXPORT __attribute__((visibility("default")))
61#endif
62#else // defined(hwy_test_EXPORTS)
63/* We are using this library */
64#ifdef _WIN32
65#define HWY_TEST_DLLEXPORT __declspec(dllimport)
66#else
67#define HWY_TEST_DLLEXPORT __attribute__((visibility("default")))
68#endif
69#endif // defined(hwy_test_EXPORTS)
70#endif // HWY_TEST_DLLEXPORT
71
72#endif // !HWY_SHARED_DEFINE
73
74#endif /* HWY_DLLEXPORT_H */