Logo AND Algorithmique Numérique Distribuée

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