TUIO C++ Developer API
LibExport.h
1 /*
2  TUIO C++ Library
3  Copyright (c) 2005-2017 Martin Kaltenbrunner <martin@tuio.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 3.0 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library.
17 */
18 
19 #ifndef INCLUDED_LIBEXPORT_H
20 #define INCLUDED_LIBEXPORT_H
21 
22 #ifdef WIN32
23  #pragma warning(disable: 4251) // disable annoying template exporting warnings
24  #pragma warning(disable: 4275) // disable warning caused by not exported OSC classes
25 
26  #ifdef LIB_EXPORT
27  #define LIBDECL __declspec(dllexport)
28  #else
29 // #define LIBDECL __declspec(dllimport)
30  #define LIBDECL
31  #endif
32 #else
33  #define LIBDECL
34 #endif
35 
36 #endif