Fix bugs in previous commit that caused FTBFS in synfig and ETL FTBFS with older...
[synfig.git] / synfig-core / tags / synfig_0_61_06 / src / synfig / version.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file version.h
3 **      \brief Template Header
4 **
5 **      $Id$
6 **
7 **      \legal
8 **      Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 **
10 **      This package is free software; you can redistribute it and/or
11 **      modify it under the terms of the GNU General Public License as
12 **      published by the Free Software Foundation; either version 2 of
13 **      the License, or (at your option) any later version.
14 **
15 **      This package is distributed in the hope that it will be useful,
16 **      but WITHOUT ANY WARRANTY; without even the implied warranty of
17 **      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 **      General Public License for more details.
19 **      \endlegal
20 */
21 /* ========================================================================= */
22
23 /* === S T A R T =========================================================== */
24
25 #ifndef __SYNFIG_VERSION_H
26 #define __SYNFIG_VERSION_H
27
28 /* === H E A D E R S ======================================================= */
29
30 /* === M A C R O S ========================================================= */
31
32 /*! \def SYNFIG_VERSION
33 **      \brief Synfig API Version
34 **
35 **      The macro SYNFIG_VERSION can be set to ensure
36 **      compile-time compatibility with future versions
37 **      of Synfig. The first two digits are the major
38 **      version, the second two digits are the minor
39 **      version, and the last two digits are the
40 **      revision release.
41 */
42 #ifndef SYNFIG_VERSION
43 #define SYNFIG_VERSION (006000)
44 #endif
45
46 /*!     Increment this value whenever
47 **      the library changes in a way
48 **      that breaks library compatibility
49 */
50 #define SYNFIG_LIBRARY_VERSION  47
51
52 /*! \writeme */
53 #define SYNFIG_CHECK_VERSION()  synfig::check_version_(SYNFIG_LIBRARY_VERSION,sizeof(synfig::Vector),sizeof(synfig::Color),sizeof(synfig::Canvas),sizeof(synfig::Layer))
54
55 /* === C L A S S E S & S T R U C T S ======================================= */
56
57 namespace synfig {
58
59 //! Version checker \internal
60 /*! Checks to make sure that the library
61 **      version matches with what the program
62 **      was compiled against.
63 **      \see SYNFIG_CHECK_VERSION()
64 */
65 extern bool check_version_(int v,int vec_size, int color_size,int canvas_size,int layer_size);
66
67 extern const char *get_version();
68
69 extern const char *get_build_date();
70
71 extern const char *get_build_time();
72
73 }; // END of namespace synfig
74
75 /* === E N D =============================================================== */
76
77 #endif