OpenCMISS-Iron Internal API Documentation
dllexport.h
Go to the documentation of this file.
1 /* \file
2  * \brief This file contains all pre-processing definitions and macros for dll exporting for Visual Studio.
3  *
4  * \section LICENSE
5  *
6  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
7  *
8  * The contents of this file are subject to the Mozilla Public License
9  * Version 1.1 (the "License"); you may not use this file except in
10  * compliance with the License. You may obtain a copy of the License at
11  * http://www.mozilla.org/MPL/
12  *
13  * Software distributed under the License is distributed on an "AS IS"
14  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
15  * License for the specific language governing rights and limitations
16  * under the License.
17  *
18  * The Original Code is OpenCMISS
19  *
20  * The Initial Developer of the Original Code is University of Auckland,
21  * Auckland, New Zealand, the University of Oxford, Oxford, United
22  * Kingdom and King's College, London, United Kingdom. Portions created
23  * by the University of Auckland, the University of Oxford and King's
24  * College, London are Copyright (C) 2007-2010 by the University of
25  * Auckland, the University of Oxford and King's College, London.
26  * All Rights Reserved.
27  *
28  * Contributor(s): Daniel Wirtz
29  *
30  * Alternatively, the contents of this file may be used under the terms of
31  * either the GNU General Public License Version 2 or later (the "GPL"), or
32  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
33  * in which case the provisions of the GPL or the LGPL are applicable instead
34  * of those above. If you wish to allow use of your version of this file only
35  * under the terms of either the GPL or the LGPL, and not to allow others to
36  * use your version of this file under the terms of the MPL, indicate your
37  * decision by deleting the provisions above and replace them with the notice
38  * and other provisions required by the GPL or the LGPL. If you do not delete
39  * the provisions above, a recipient may use your version of this file under
40  * the terms of any one of the MPL, the GPL or the LGPL.
41  *
42  */
43 
44 #ifdef _MSC_VER
45 #define DLLEXPORT(func) DEC$ ATTRIBUTES DLLEXPORT :: func
46 #define DLLEXPORT_ALIAS(func,alias) DEC$ ATTRIBUTES DLLEXPORT,ALIAS:"alias" :: func
47 #else
48 #define DLLEXPORT(func)
49 #define DLLEXPORT_ALIAS(func,alias)
50 #endif