00001 // version.h: check the compiler C++ ABI version is compatible with that used 00002 // to build the library, and also define preprocessor symbols for the library 00003 // version. 00004 00005 // Copyright 2002 Olly Betts 00006 00007 // This program is free software; you can redistribute it and/or 00008 // modify it under the terms of the GNU General Public License as 00009 // published by the Free Software Foundation; either version 2 of the 00010 // License, or (at your option) any later version. 00011 00012 // This program is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 00017 // You should have received a copy of the GNU General Public License 00018 // along with this program; if not, write to the Free Software 00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00020 // USA 00021 00022 #ifndef XAPIAN_INCLUDED_VERSION_H 00023 #define XAPIAN_INCLUDED_VERSION_H 00024 00025 #ifdef __GNUC__ 00026 #if !defined(__GXX_ABI_VERSION) || __GXX_ABI_VERSION != 102 00027 #error The C++ ABI version of compiler you are using does not match 00028 #error that of the compiler used to build the library. The versions 00029 #error must match or your program will not work correctly. 00030 #error The Xapian library was built with g++ 3.3.0 00031 #endif 00032 #endif 00033 00034 #define XAPIAN_VERSION 0.7.1 00035 #define XAPIAN_MAJOR_VERSION 0 00036 #define XAPIAN_MINOR_VERSION 7 00037 00038 #endif