LibMusicXML  3.18
exports.h
1 /*
2  MusicXML Library
3  Copyright (C) Grame 2006-2013
4 
5  This Source Code Form is subject to the terms of the Mozilla Public
6  License, v. 2.0. If a copy of the MPL was not distributed with this
7  file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
10  research@grame.fr
11 */
12 
13 #ifndef __exports__
14 #define __exports__
15 
16 #if defined(WIN32) // && !defined (GCC)
17 
18 # ifdef MSVC
19 # pragma warning (disable : 4267)
20 # pragma warning (disable : 4275)
21 # pragma warning (disable : 4251)
22 # pragma warning (disable : 4786)
23 # pragma warning (disable : 4251)
24 # pragma warning (disable : 4275)
25 # endif
26 
27 # ifdef LIBMUSICXML_EXPORTS
28 # define EXP __declspec(dllexport)
29 
30 # elif defined(LIBMUSICXML_STATIC)
31 # define EXP
32 
33 # else
34 # define EXP __declspec(dllimport)
35 # endif
36 
37 #else
38 
39 # ifdef LIBMUSICXML_EXPORTS
40 # define EXP __attribute__ ((visibility("default")))
41 # else
42 # define EXP
43 # endif
44 
45 #endif
46 
47 #endif
48