[62] | 1 | // This file is part of the PACPUS framework distributed under the
|
---|
| 2 | // CECILL-C License, Version 1.0.
|
---|
| 3 | //
|
---|
[63] | 4 | /// @author Gerald Dherbomez <firstname.surname@utc.fr>
|
---|
| 5 | /// @author Marek Kurdej <firstname.surname@utc.fr>
|
---|
| 6 | /// @date February, 2006
|
---|
[62] | 7 | /// @version $Id$
|
---|
| 8 | /// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
|
---|
| 9 | /// @brief Brief description.
|
---|
| 10 | ///
|
---|
| 11 | /// Detailed description.
|
---|
[3] | 12 |
|
---|
[31] | 13 | #ifndef DEF_PACPUS_H
|
---|
| 14 | #define DEF_PACPUS_H
|
---|
[3] | 15 |
|
---|
[31] | 16 | #include <Pacpus/kernel/road_time.h>
|
---|
| 17 |
|
---|
[11] | 18 | // Deprecated, you should use M_PI from cmath.
|
---|
[3] | 19 | #ifndef PACPUS_PI
|
---|
| 20 | # define PACPUS_PI 3.1415926
|
---|
[11] | 21 | #endif
|
---|
[3] | 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__
|
---|
[59] | 38 | # define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
|
---|
| 39 | # define PACPUS_DEPRECATED_MSG(func, msg) PACPUS_DEPRECATED(func)
|
---|
[3] | 40 | #elif defined(_MSC_VER)
|
---|
[59] | 41 | # define PACPUS_DEPRECATED(func) __declspec(deprecated) func
|
---|
| 42 | # define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
|
---|
[3] | 43 | #else
|
---|
| 44 | # pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
|
---|
[59] | 45 | # define PACPUS_DEPRECATED(func) func
|
---|
| 46 | # define PACPUS_DEPRECATED_MSG(func, msg) func
|
---|
[3] | 47 | #endif
|
---|
| 48 |
|
---|
[31] | 49 | #endif // DEF_PACPUS_H
|
---|