3 /// Provide access to library version information
7 Copyright (C) 2007-2012, 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.
25 #ifdef WORDS_BIGENDIAN
26 #define BARRY_VERSION_STRING "Barry library version " BARRY_VER_STRING " (big endian)"
28 #define BARRY_VERSION_STRING "Barry library version " BARRY_VER_STRING " (little endian)"
31 #define BARRY_VERSION_LOGICAL BARRY_LOGICAL
32 #define BARRY_VERSION_MAJOR BARRY_MAJOR
33 #define BARRY_VERSION_MINOR BARRY_MINOR
37 /// Fills major and minor with integer version numbers, and
38 /// returns a string containing human readable version
39 /// information in English.
40 const char* Version(int &logical
, int &major
, int &minor
)
42 major
= BARRY_VERSION_MAJOR
;
43 minor
= BARRY_VERSION_MINOR
;
44 return BARRY_VERSION_STRING
;