- refactored postal addresses in the Contact record class into
[barry.git] / src / version.cc
blob2ade867ad4d27aa9add2612e89ffdc21b2c36223
1 ///
2 /// \file version.cc
3 /// Provide access to library version information
4 ///
6 /*
7 Copyright (C) 2007, 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.8 (big endian)"
27 #else
28 #define BARRY_VERSION_STRING "Barry library version 0.8 (little endian)"
29 #endif
31 #define BARRY_VERSION_MAJOR 0
32 #define BARRY_VERSION_MINOR 8
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