-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaprilExport.h
43 lines (40 loc) · 1.07 KB
/
aprilExport.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
/// @file
/// @author Kresimir Spes
/// @author Boris Mikic
/// @version 3.3
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php
///
/// @section DESCRIPTION
///
/// Defines macros for DLL exports/imports.
#ifndef APRIL_EXPORT_H
#define APRIL_EXPORT_H
#ifdef _LIB
#define aprilExport
#define aprilFnExport
#else
#ifdef _WIN32
#ifdef APRIL_EXPORTS
#define aprilExport __declspec(dllexport)
#define aprilFnExport __declspec(dllexport)
#else
#define aprilExport __declspec(dllimport)
#define aprilFnExport __declspec(dllimport)
#endif
#else
#define aprilExport __attribute__ ((visibility("default")))
#define aprilFnExport __attribute__ ((visibility("default")))
#endif
#endif
#ifndef DEPRECATED_ATTRIBUTE
#ifdef _MSC_VER
#define DEPRECATED_ATTRIBUTE __declspec(deprecated("function is deprecated"))
#else
#define DEPRECATED_ATTRIBUTE __attribute__((deprecated))
#endif
#endif
#endif