Theora Playback Library  1.1.0
TheoraExport.h
Go to the documentation of this file.
1 /************************************************************************************
2 This source file is part of the Theora Video Playback Library
3 For latest info, see http://libtheoraplayer.googlecode.com
4 *************************************************************************************
5 Copyright (c) 2008-2014 Kresimir Spes (kspes@cateia.com)
6 This program is free software; you can redistribute it and/or modify it under
7 the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause
8 *************************************************************************************/
9 #ifndef _theoraVideoExport_h
10 #define _theoraVideoExport_h
11 
12  #ifdef _LIB
13  #define TheoraPlayerExport
14  #define TheoraPlayerFnExport
15  #else
16  #ifdef _WIN32
17  #ifdef THEORAVIDEO_EXPORTS
18  #define TheoraPlayerExport __declspec(dllexport)
19  #define TheoraPlayerFnExport __declspec(dllexport)
20  #else
21  #define TheoraPlayerExport __declspec(dllimport)
22  #define TheoraPlayerFnExport __declspec(dllimport)
23  #endif
24  #else
25  #define TheoraPlayerExport __attribute__ ((visibility("default")))
26  #define TheoraPlayerFnExport __attribute__ ((visibility("default")))
27  #endif
28  #endif
29  #ifndef DEPRECATED_ATTRIBUTE
30  #ifdef _MSC_VER
31  #define DEPRECATED_ATTRIBUTE __declspec(deprecated("function is deprecated"))
32  #else
33  #define DEPRECATED_ATTRIBUTE __attribute__((deprecated))
34  #endif
35  #endif
36 
37 #endif
38