source: pacpusframework/trunk/include/Pacpus/kernel/pacpus.h@ 23

Last change on this file since 23 was 11, checked in by sgosseli, 12 years ago

Minor changes.

File size: 1.1 KB
Line 
1#ifndef PACPUS_H
2#define PACPUS_H
3
4#include "road_time.h"
5
6// Deprecated, you should use M_PI from cmath.
7#ifndef PACPUS_PI
8# define PACPUS_PI 3.1415926
9#endif
10
11// Export macro for PacpusLib DLL for Windows only
12#ifdef WIN32
13# ifdef PACPUSLIB_EXPORTS
14// make DLL
15# define PACPUSLIB_API __declspec(dllexport)
16# else
17// use DLL
18# define PACPUSLIB_API __declspec(dllimport)
19# endif
20#else
21// On other platforms, simply ignore this
22# define PACPUSLIB_API
23#endif
24
25#ifdef __GNUC__
26# define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
27# define PACPUS_DEPRECATED_MSG(func, msg) func __attribute__ ((deprecated))
28#elif defined(_MSC_VER)
29# define PACPUS_DEPRECATED(func) __declspec(deprecated) func
30# define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
31#else
32# pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
33# define PACPUS_DEPRECATED(func) func
34# define PACPUS_DEPRECATED_MSG(func, msg) func
35#endif
36
37#endif
Note: See TracBrowser for help on using the repository browser.