Line | |
---|
1 | // This file is part of the PACPUS framework distributed under the
|
---|
2 | // CECILL-C License, Version 1.0.
|
---|
3 | //
|
---|
4 | /// @author Firstname Surname <firstname.surname@utc.fr>
|
---|
5 | /// @date Month, Year
|
---|
6 | /// @version $Id$
|
---|
7 | /// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
|
---|
8 | /// @brief Brief description.
|
---|
9 | ///
|
---|
10 | /// Detailed description.
|
---|
11 |
|
---|
12 | #ifndef DEF_PACPUS_H
|
---|
13 | #define DEF_PACPUS_H
|
---|
14 |
|
---|
15 | #include <Pacpus/kernel/road_time.h>
|
---|
16 |
|
---|
17 | // Deprecated, you should use M_PI from cmath.
|
---|
18 | #ifndef PACPUS_PI
|
---|
19 | # define PACPUS_PI 3.1415926
|
---|
20 | #endif
|
---|
21 |
|
---|
22 | // Export macro for PacpusLib DLL for Windows only
|
---|
23 | #ifdef WIN32
|
---|
24 | # ifdef PACPUSLIB_EXPORTS
|
---|
25 | // make DLL
|
---|
26 | # define PACPUSLIB_API __declspec(dllexport)
|
---|
27 | # else
|
---|
28 | // use DLL
|
---|
29 | # define PACPUSLIB_API __declspec(dllimport)
|
---|
30 | # endif
|
---|
31 | #else
|
---|
32 | // On other platforms, simply ignore this
|
---|
33 | # define PACPUSLIB_API
|
---|
34 | #endif
|
---|
35 |
|
---|
36 | #ifdef __GNUC__
|
---|
37 | # define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
|
---|
38 | # define PACPUS_DEPRECATED_MSG(func, msg) PACPUS_DEPRECATED(func)
|
---|
39 | #elif defined(_MSC_VER)
|
---|
40 | # define PACPUS_DEPRECATED(func) __declspec(deprecated) func
|
---|
41 | # define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
|
---|
42 | #else
|
---|
43 | # pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
|
---|
44 | # define PACPUS_DEPRECATED(func) func
|
---|
45 | # define PACPUS_DEPRECATED_MSG(func, msg) func
|
---|
46 | #endif
|
---|
47 |
|
---|
48 | #endif // DEF_PACPUS_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.