dllexport.h
Go to the documentation of this file.
1 // Macros for exporting DLL symbols on Windows
2 // Usage example:
3 // In header file:
4 // class CEPHES_EXPORT MyClass { ... };
5 //
6 // Results in the following declarations:
7 // When included while compiling the library itself:
8 // class __declspec(dllexport) MyClass { ... };
9 // When included while compiling other code against the library:
10 // class __declspec(dllimport) MyClass { ... };
11 
12 #pragma once
13 
14 #ifdef _WIN32
15 # define CEPHES_EXPORT __declspec(dllimport)
16 # define CEPHES_EXTERN_EXPORT __declspec(dllimport)
17 #else
18 #ifdef __APPLE__
19 # define CEPHES_EXPORT __attribute__((visibility("default")))
20 # define CEPHES_EXTERN_EXPORT extern
21 #else
22 # define CEPHES_EXPORT
23 # define CEPHES_EXTERN_EXPORT extern
24 #endif
25 #endif


gtsam
Author(s):
autogenerated on Thu Jun 13 2024 03:02:14