OpenFrames
Export.h
Go to the documentation of this file.
1 /***********************************
2  Copyright 2018 Ravishankar Mathur
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 ***********************************/
16 
21 #ifndef _OF_EXPORT_
22 #define _OF_EXPORT_
23 
24 #if defined(_MSC_VER)
25  #pragma warning( disable : 4244 )
26  #pragma warning( disable : 4251 )
27  #pragma warning( disable : 4267 )
28  #pragma warning( disable : 4275 )
29  #pragma warning( disable : 4290 )
30  #pragma warning( disable : 4786 )
31  #pragma warning( disable : 4305 )
32 #endif
33 
34 #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
35  # ifdef OF_LIBRARY
36  # define OF_EXPORT __declspec(dllexport)
37  # else
38  # define OF_EXPORT __declspec(dllimport)
39  # endif /* OF_LIBRARY */
40 #else
41  # define OF_EXPORT
42 #endif
43 
44 // set up define for whether member templates are supported by VisualStudio compilers.
45 #ifdef _MSC_VER
46 # if (_MSC_VER >= 1300)
47 # define __STL_MEMBER_TEMPLATES
48 # endif
49 #endif
50 
51 #endif