HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PyImathExport.h
Go to the documentation of this file.
1 //
2 // SPDX-License-Identifier: BSD-3-Clause
3 // Copyright Contributors to the OpenEXR Project.
4 //
5 
6 // clang-format off
7 
8 #ifndef PYIMATHEXPORT_H
9 #define PYIMATHEXPORT_H
10 
11 #if defined(IMATH_DLL)
12  #if defined(PLATFORM_VISIBILITY_AVAILABLE)
13  #define PYIMATH_EXPORT __attribute__((visibility("default")))
14  #define PYIMATH_EXPORT __attribute__((visibility("default")))
15  #elif defined(_MSC_VER)
16  #if defined(PYIMATH_BUILD)
17  #define PYIMATH_EXPORT __declspec(dllexport)
18  #else
19  #define PYIMATH_EXPORT __declspec(dllimport)
20  #endif
21  #else
22  #define PYIMATH_EXPORT
23  #endif
24 #else
25  #define PYIMATH_EXPORT
26 #endif
27 
28 #endif // #ifndef PYIMATHEXPORT_H