-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathyafray_constants.h
47 lines (39 loc) · 1.04 KB
/
yafray_constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef Y_CONSTANTS_H
#define Y_CONSTANTS_H
#define __BEGIN_YAFRAY namespace yafaray {
#define __END_YAFRAY }
#define PACKAGE "YafaRay"
#define VERSION "0.1.1"
#if (__GNUC__ > 3)
#define GCC_HASCLASSVISIBILITY
#endif
// define symbol export and import attributes
#ifdef _WIN32
#define YF_EXPORT __declspec(dllexport)
#define YF_IMPORT __declspec(dllimport)
#else
#ifdef GCC_HASCLASSVISIBILITY
#define YF_EXPORT __attribute__ ((visibility("default")))
#define YF_IMPORT __attribute__ ((visibility("default")))
#else
#define YF_EXPORT
#define YF_IMPORT
#endif
#endif
// automatic macros that switch between import and export, depending on compiler environment
#ifdef BUILDING_YAFRAYCORE
#define YAFRAYCORE_EXPORT YF_EXPORT
#else
#define YAFRAYCORE_EXPORT YF_IMPORT
#endif
#ifdef BUILDING_YAFRAYPLUGIN
#define YAFRAYPLUGIN_EXPORT YF_EXPORT
#else
#define YAFRAYPLUGIN_EXPORT YF_IMPORT
#endif
#ifdef BUILDING_OPENCL_WRAPPER
#define OPENCL_WRAPPER_EXPORT YF_EXPORT
#else
#define OPENCL_WRAPPER_EXPORT YF_IMPORT
#endif
#endif // Y_CONSTANTS_H