1 // -*- C++ -*-
2 /* gdkglextmm - C++ Wrapper for GdkGLExt
3  * Copyright (C) 2002-2003  Naofumi Yasufuku
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 2.1 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; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
18  */
19 
20 #ifndef _GDKMM_GL_VERSION_H
21 #define _GDKMM_GL_VERSION_H
22 
23 #include <gdkmm/gl/defs.h>
24 
25 /*
26  * Compile time version.
27  */
28 #define GDKGLEXTMM_MAJOR_VERSION (1)
29 #define GDKGLEXTMM_MINOR_VERSION (2)
30 #define GDKGLEXTMM_MICRO_VERSION (0)
31 #define GDKGLEXTMM_INTERFACE_AGE (0)
32 #define GDKGLEXTMM_BINARY_AGE    (0)
33 
34 /*
35  * Check whether a gdkglextmm version equal to or greater than
36  * major.minor.micro is present.
37  */
38 #define	GDKGLEXTMM_CHECK_VERSION(major, minor, micro)                            \
39   (GDKGLEXTMM_MAJOR_VERSION > (major) ||                                         \
40   (GDKGLEXTMM_MAJOR_VERSION == (major) && GDKGLEXTMM_MINOR_VERSION > (minor)) || \
41   (GDKGLEXTMM_MAJOR_VERSION == (major) && GDKGLEXTMM_MINOR_VERSION == (minor) && \
42    GDKGLEXTMM_MICRO_VERSION >= (micro)))
43 
44 /*
45  * Library version.
46  */
47 
48 GDKMM_GL_VAR const int gdkglextmm_major_version;
49 GDKMM_GL_VAR const int gdkglextmm_minor_version;
50 GDKMM_GL_VAR const int gdkglextmm_micro_version;
51 GDKMM_GL_VAR const int gdkglextmm_interface_age;
52 GDKMM_GL_VAR const int gdkglextmm_binary_age;
53 
54 #endif // _GDKMM_GL_VERSION_H
55