ADOL-C: Automatic Differentiation in C/C++ 2.7.3
Loading...
Searching...
No Matches
adolcexport.h
Go to the documentation of this file.
1#ifndef ADOLC_EXPORT_H
2#define ADOLC_EXPORT_H
3
4/* Under windows we have to explicit state which symbols (functions, classes,
5 * etc) are exportet when compiling a SHARED library. The dllimport specifies if
6 * a user builds its code with adolc that the symbols are defined somewhere
7 * else.
8 */
9#if defined(_WIN32) && defined(ADOLC_SHARED)
10#ifdef BUILD_ADOLC
11#define ADOLC_API __declspec(dllexport)
12#else
13#define ADOLC_API __declspec(dllimport)
14#endif
15#else
16#define ADOLC_API
17#endif
18
19#endif // ADOLC_EXPORT_H