From Mike Wittman and Robert Osfield, added support for SO_VERSION number in

runtime version info.  Added checks for OpenThreads version.
This commit is contained in:
Robert Osfield
2007-09-11 10:10:43 +00:00
parent 269a3956e3
commit bea07b5f72
3 changed files with 50 additions and 5 deletions

View File

@@ -18,12 +18,11 @@
extern "C" {
#define OSG_VERSION_MAJOR 2
#define OSG_VERSION_MINOR 1
#define OSG_VERSION_PATCH 9
#define OSG_VERSION_RELEASE OSG_VERSION_PATCH
#define OSG_VERSION_REVISION 0
#define OPENSCENEGRAPH_MAJOR_VERSION 2
#define OPENSCENEGRAPH_MINOR_VERSION 1
#define OPENSCENEGRAPH_PATCH_VERSION 9
#define OPENSCENEGRAPH_SOVERSION 20
/**
* osgGetVersion() returns the library version number.
@@ -43,9 +42,21 @@ extern "C" {
*/
extern OSG_EXPORT const char* osgGetVersion();
/** The osgGetSOVersion() method returns the OpenSceneGraph soversion number. */
extern OSG_EXPORT const char* osgGetSOVersion();
/** The osgGetLibraryName() method returns the library name in human-friendly form. */
extern OSG_EXPORT const char* osgGetLibraryName();
// old defines for backwards compatibility.
#define OSG_VERSION_MAJOR OPENSCENEGRAPH_MAJOR_VERSION
#define OSG_VERSION_MINOR OPENSCENEGRAPH_MINOR_VERSION
#define OSG_VERSION_PATCH OPENSCENEGRAPH_PATCH_VERSION
#define OSG_VERSION_RELEASE OSG_VERSION_PATCH
#define OSG_VERSION_REVISION 0
}
#endif