summaryrefslogtreecommitdiffstats
path: root/fltk/fltk/FL_VERSION.h
diff options
context:
space:
mode:
authorBastian Wissler2009-04-01 18:57:04 +0200
committerBastian Wissler2009-04-01 18:57:04 +0200
commitfd33e001bb3ab76b6aef97f641ddcbee9ab384ef (patch)
treeeb485719b893df5068da6c063c094ae2aa32621b /fltk/fltk/FL_VERSION.h
parentvmchooser source: (diff)
downloadvmchooser-fd33e001bb3ab76b6aef97f641ddcbee9ab384ef.tar.gz
vmchooser-fd33e001bb3ab76b6aef97f641ddcbee9ab384ef.tar.xz
vmchooser-fd33e001bb3ab76b6aef97f641ddcbee9ab384ef.zip
vmchooser source:
* added fltk libs and includes git-svn-id: http://svn.openslx.org/svn/openslx/openslx-src-tools/vmchooser/trunk@2778 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'fltk/fltk/FL_VERSION.h')
-rw-r--r--fltk/fltk/FL_VERSION.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/fltk/fltk/FL_VERSION.h b/fltk/fltk/FL_VERSION.h
new file mode 100644
index 0000000..4266ee9
--- /dev/null
+++ b/fltk/fltk/FL_VERSION.h
@@ -0,0 +1,39 @@
+/*! \file
+
+The FLTK version number. Allows you to write conditionally compiled
+code for different versions of FLTK. This file may be included by C
+code in case you need it there.
+
+FL_VERSION is a macro double that describes the major, minor, and
+patch version numbers. The integer value is the major number. One
+digit is used for the minor number, and three for the "patch" number
+which is increased for each binary differnt release (it can go to 999).
+
+Because double cannot be used in #if statements, the integer
+numbers are in the FL_MAJOR_VERSION, FL_MINOR_VERSION, and
+FL_PATCH_VERSION macro constants.
+
+*/
+
+#ifndef FL_VERSION
+
+# define FL_MAJOR_VERSION 2 //!< The major release number, 1 or 2
+# define FL_MINOR_VERSION 1 //!< The minor release number, 0-9
+# define FL_PATCH_VERSION 0 //!< The patch number, 0-999
+# define FL_VERSION 2.1000
+
+#if defined(__cplusplus) || defined(DOXYGEN) /* Allow this file to be included by C code */
+#include "FL_API.h"
+namespace fltk {
+
+/*!
+ Returns the value of FL_VERSION that FLTK was compiled with.
+ This can be compared to the FL_VERSION macro to see if the shared
+ library of fltk your program linked with is up to date.
+*/
+FL_API double version();
+
+}
+#endif
+
+#endif