BRL-CAD
defines.h
Go to the documentation of this file.
1 /* D E F I N E S . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2011-2014 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 /** @file defines.h
21  *
22  * Common definitions for LIBRT
23  *
24  */
25 
26 #ifndef RT_DEFINES_H
27 #define RT_DEFINES_H
28 
29 #ifndef RT_EXPORT
30 # if defined(RT_DLL_EXPORTS) && defined(RT_DLL_IMPORTS)
31 # error "Only RT_DLL_EXPORTS or RT_DLL_IMPORTS can be defined, not both."
32 # elif defined(RT_DLL_EXPORTS)
33 # define RT_EXPORT __declspec(dllexport)
34 # elif defined(RT_DLL_IMPORTS)
35 # define RT_EXPORT __declspec(dllimport)
36 # else
37 # define RT_EXPORT
38 # endif
39 #endif
40 
41 #endif /* RT_DEFINES_H */
42 
43 /*
44  * Local Variables:
45  * tab-width: 8
46  * mode: C
47  * indent-tabs-mode: t
48  * c-file-style: "stroustrup"
49  * End:
50  * ex: shiftwidth=4 tabstop=8
51  */