|
17 | 17 | #define DLL_LOCAL |
18 | 18 |
|
19 | 19 | #ifdef CSPTYPESIMPL_EXPORTS |
20 | | -#define CSPTYPESIMPL_EXPORT __declspec(dllexport) |
| 20 | +#define CSPTYPESIMPL_EXPORT __declspec( dllexport ) |
21 | 21 | #else |
22 | | -#define CSPTYPESIMPL_EXPORT __declspec(dllimport) |
| 22 | +#define CSPTYPESIMPL_EXPORT __declspec( dllimport ) |
23 | 23 | #endif |
24 | 24 |
|
25 | 25 | #ifdef CSPIMPL_EXPORTS |
26 | | -#define CSPIMPL_EXPORT __declspec(dllexport) |
| 26 | +#define CSPIMPL_EXPORT __declspec( dllexport ) |
27 | 27 | #else |
28 | | -#define CSPIMPL_EXPORT __declspec(dllimport) |
| 28 | +#define CSPIMPL_EXPORT __declspec( dllimport ) |
29 | 29 | #endif |
30 | 30 |
|
31 | 31 | // C API export macro - used for ABI-stable C functions |
32 | 32 | // On Windows: export from cspimpl.dll |
33 | 33 | // On Unix: ensure symbols have default visibility |
34 | 34 | #ifdef CSPIMPL_EXPORTS |
35 | | -#define CSP_C_API_EXPORT __declspec(dllexport) |
| 35 | +#define CSP_C_API_EXPORT __declspec( dllexport ) |
36 | 36 | #else |
37 | | -#define CSP_C_API_EXPORT __declspec(dllimport) |
| 37 | +#define CSP_C_API_EXPORT __declspec( dllimport ) |
38 | 38 | #endif |
39 | 39 |
|
40 | | -#define START_PACKED __pragma( pack(push, 1) ) |
41 | | -#define END_PACKED __pragma( pack(pop)) |
| 40 | +#define START_PACKED __pragma( pack( push, 1 ) ) |
| 41 | +#define END_PACKED __pragma( pack( pop ) ) |
42 | 42 |
|
43 | | -#define NO_INLINE __declspec(noinline) |
| 43 | +#define NO_INLINE __declspec( noinline ) |
44 | 44 |
|
45 | 45 | inline tm * localtime_r( const time_t * timep, tm * result ) |
46 | 46 | { |
@@ -103,14 +103,14 @@ inline uint8_t ffs(uint64_t n) |
103 | 103 | #define CSPTYPESIMPL_EXPORT |
104 | 104 |
|
105 | 105 | // C API export macro - ensure symbols have default visibility for external use |
106 | | -#define CSP_C_API_EXPORT __attribute__((visibility("default"))) |
| 106 | +#define CSP_C_API_EXPORT __attribute__( ( visibility( "default" ) ) ) |
107 | 107 |
|
108 | | -#define DLL_LOCAL __attribute__ ((visibility ("hidden"))) |
| 108 | +#define DLL_LOCAL __attribute__ ( ( visibility( "hidden" ) ) ) |
109 | 109 |
|
110 | 110 | #define START_PACKED |
111 | | -#define END_PACKED __attribute__((packed)) |
| 111 | +#define END_PACKED __attribute__( ( packed ) ) |
112 | 112 |
|
113 | | -#define NO_INLINE __attribute__ ((noinline)) |
| 113 | +#define NO_INLINE __attribute__ ( ( noinline ) ) |
114 | 114 |
|
115 | 115 | inline constexpr uint8_t clz(uint32_t n) { return __builtin_clz(n); } |
116 | 116 | inline constexpr uint8_t clz(uint64_t n) { return __builtin_clzl(n); } |
|
0 commit comments