Gnash  0.8.11dev
gnash_gst_version.h
Go to the documentation of this file.
1 /* GStreamer
2  * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3  * 2000 Wim Taymans <wtay@chello.be>
4  *
5  * gstversion.h: Version information for GStreamer
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22 
23 /*
24  * NOTE: this file is derived from gst/gstversion.h. However, since no
25  * nontrivial modifications were made it does not meet the originality
26  * requirements for copyrightability of derivative works. The copyright
27  * of this file, therefore, remains with the original authors.
28  */
29 
30 #ifndef __GNASH_GST_VERSION_H__
31 #define __GNASH_GST_VERSION_H__
32 
33 #include <gst/gst.h>
34 
35 G_BEGIN_DECLS
36 
37 #ifndef GST_CHECK_VERSION
38 #define GST_CHECK_VERSION(major,minor,micro) \
39  (GST_VERSION_MAJOR > (major) || \
40  (GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR > (minor)) || \
41  (GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR == (minor) && \
42  GST_VERSION_MICRO >= (micro)))
43 #endif
44 
45 #if GST_CHECK_VERSION(0,10,13)
46 # define GNASH_GST_PLUGIN_DEFINE GST_PLUGIN_DEFINE
47 #else
48 # define GNASH_GST_PLUGIN_DEFINE GST_PLUGIN_DEFINE_STATIC
49 #endif
50 
51 G_END_DECLS
52 
53 #endif /* __GNASH_GST_VERSION_H__ */