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