Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add to new utility functions :
[simgrid.git] / src / cxx / Config.hpp
1 \r
2 /*\r
3  * Config.hpp\r
4  *\r
5  * This file contains the declaration of the wrapper class of the native MSG task type.\r
6  *\r
7  * Copyright 2006,2007 Martin Quinson, Malek Cherier           \r
8  * All right reserved. \r
9  *\r
10  * This program is free software; you can redistribute \r
11  * it and/or modify it under the terms of the license \r
12  *(GNU LGPL) which comes with this package. \r
13  *\r
14  */  \r
15 \r
16 #ifndef MSG_CONFIG_HPP\r
17 #define MSG_CONFIG_HPP\r
18 \r
19 #ifndef __cplusplus\r
20         #error Config.hpp requires C++ compilation (use a .cxx suffix)\r
21 #endif\r
22 \r
23 namespace SimGrid\r
24 {\r
25         namespace Msg\r
26         {\r
27                 #if defined(WIN32) && !defined(__MINGW32__)\r
28                         #if defined(SIMGRIDX_EXPORTS)\r
29                                 #define SIMGRIDX_EXPORT __declspec(dllexport)\r
30                         #else\r
31                                 #define SIMGRIDX_EXPORT __declspec(dllimport)\r
32                         #endif\r
33                 #else\r
34                         #define SIMGRIDX_EXPORT\r
35                 #endif \r
36         } // namespace Msg\r
37 } // namespace SimGrid\r
38 \r
39 #ifndef WIN32\r
40 #define _strdup strdup\r
41 #endif\r
42 \r
43 #endif // MSG_CONFIG_HPP\r
44 \r