Fixed systemic endian issue in m_javaloader.cc
[barry.git] / src / version.cc
blobf10e572f48a634276bafc4498db89e74f5ea9e61
1 ///
2 /// \file version.cc
3 /// Provide access to library version information
4 ///
6 /*
7 Copyright (C) 2007-2009, Net Direct Inc. (http://www.netdirect.ca/)
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 See the GNU General Public License in the COPYING file at the
19 root directory of this project for more details.
22 #include "version.h"
23 #include "config.h"
25 #ifdef WORDS_BIGENDIAN
26 #define BARRY_VERSION_STRING "Barry library version 0.15 (big endian)"
27 #else
28 #define BARRY_VERSION_STRING "Barry library version 0.15 (little endian)"
29 #endif
31 #define BARRY_VERSION_MAJOR 0
32 #define BARRY_VERSION_MINOR 15
34 namespace Barry {
36 /// Fills major and minor with integer version numbers, and
37 /// returns a string containing human readable version
38 /// information in English.
39 const char* Version(int &major, int &minor)
41 major = BARRY_VERSION_MAJOR;
42 minor = BARRY_VERSION_MINOR;
43 return BARRY_VERSION_STRING;
46 } // namespace Barry