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