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

Last change on this file since 57 was 31, checked in by sgosseli, 12 years ago

Huge commit: use the new includes style in all the files, add the license header in all the headers, and in some cpp.

File size: 1.4 KB
RevLine 
[31]1/**
2 *
3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0.
4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved.
5 *
6 * See the LICENSE file for more information or a copy at:
7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt
8 *
9 */
[3]10
[31]11#ifndef DEF_PACPUS_H
12#define DEF_PACPUS_H
[3]13
[31]14#include <Pacpus/kernel/road_time.h>
15
[11]16// Deprecated, you should use M_PI from cmath.
[3]17#ifndef PACPUS_PI
18# define PACPUS_PI 3.1415926
[11]19#endif
[3]20
21// Export macro for PacpusLib DLL for Windows only
22#ifdef WIN32
23# ifdef PACPUSLIB_EXPORTS
24// make DLL
25# define PACPUSLIB_API __declspec(dllexport)
26# else
27// use DLL
28# define PACPUSLIB_API __declspec(dllimport)
29# endif
30#else
31// On other platforms, simply ignore this
32# define PACPUSLIB_API
33#endif
34
35#ifdef __GNUC__
36# define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
37# define PACPUS_DEPRECATED_MSG(func, msg) func __attribute__ ((deprecated))
38#elif defined(_MSC_VER)
39# define PACPUS_DEPRECATED(func) __declspec(deprecated) func
40# define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
41#else
42# pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
43# define PACPUS_DEPRECATED(func) func
44# define PACPUS_DEPRECATED_MSG(func, msg) func
45#endif
46
[31]47#endif // DEF_PACPUS_H
Note: See TracBrowser for help on using the repository browser.