Rev | Line | |
---|
[62] | 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.
|
---|
[3] | 11 |
|
---|
[31] | 12 | #ifndef DEF_PACPUS_H
|
---|
| 13 | #define DEF_PACPUS_H
|
---|
[3] | 14 |
|
---|
[31] | 15 | #include <Pacpus/kernel/road_time.h>
|
---|
| 16 |
|
---|
[11] | 17 | // Deprecated, you should use M_PI from cmath.
|
---|
[3] | 18 | #ifndef PACPUS_PI
|
---|
| 19 | # define PACPUS_PI 3.1415926
|
---|
[11] | 20 | #endif
|
---|
[3] | 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__
|
---|
[59] | 37 | # define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
|
---|
| 38 | # define PACPUS_DEPRECATED_MSG(func, msg) PACPUS_DEPRECATED(func)
|
---|
[3] | 39 | #elif defined(_MSC_VER)
|
---|
[59] | 40 | # define PACPUS_DEPRECATED(func) __declspec(deprecated) func
|
---|
| 41 | # define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
|
---|
[3] | 42 | #else
|
---|
| 43 | # pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
|
---|
[59] | 44 | # define PACPUS_DEPRECATED(func) func
|
---|
| 45 | # define PACPUS_DEPRECATED_MSG(func, msg) func
|
---|
[3] | 46 | #endif
|
---|
| 47 |
|
---|
[31] | 48 | #endif // DEF_PACPUS_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.