Add new define to declare scilab gateway in C / C++.
[scilab.git] / scilab / modules / dynamic_link / includes / dynlib_dynamic_link.h
1 /*
2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) DIGITEO - 2009 - Allan CORNET
4
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution.  The terms
8 * are also available at    
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10 *
11 */
12
13 /*--------------------------------------------------------------------------*/ 
14 #ifndef __DYNLIB_DYNAMIC_LINK_H__
15 #define __DYNLIB_DYNAMIC_LINK_H__
16
17 #ifdef _MSC_VER
18 #ifdef DYNAMIC_LINK_EXPORTS
19 #define DYNAMIC_LINK_IMPEXP __declspec(dllexport)
20 #else
21 #define DYNAMIC_LINK_IMPEXP __declspec(dllimport)
22 #endif
23 #else
24 #define DYNAMIC_LINK_IMPEXP
25 #endif
26
27 #endif /* __DYNLIB_DYNAMIC_LINK_H__ */
28 /*--------------------------------------------------------------------------*/ 
29