kpilot/lib
pilotLinkVersion.h
00001 #ifndef _KPILOT_PILOTLINKVERSION_H 00002 #define _KPILOT_PILOTLINKVERSION_H 00003 00004 /* pilotLinkVersion.h KPilot 00005 ** 00006 ** Copyright (C) 2005 by Adriaan de Groot 00007 ** 00008 ** Checks the pilot-link version and defines some convenience macros. 00009 ** 00010 */ 00011 00012 /* 00013 ** This program is free software; you can redistribute it and/or modify 00014 ** it under the terms of the GNU Lesser General Public License as published by 00015 ** the Free Software Foundation; either version 2.1 of the License, or 00016 ** (at your option) any later version. 00017 ** 00018 ** This program is distributed in the hope that it will be useful, 00019 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 ** GNU Lesser General Public License for more details. 00022 ** 00023 ** You should have received a copy of the GNU Lesser General Public License 00024 ** along with this program in a file called COPYING; if not, write to 00025 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00026 ** MA 02110-1301, USA. 00027 */ 00028 00029 /* 00030 ** Bug reports and questions can be sent to kde-pim@kde.org 00031 */ 00032 00033 00034 #include <pi-version.h> 00035 00036 #ifndef PILOT_LINK_VERSION 00037 #error "You need at least pilot-link version 0.12.0" 00038 #endif 00039 00040 00041 #define PILOT_LINK_NUMBER ((10000*PILOT_LINK_VERSION) + \ 00042 (100*PILOT_LINK_MAJOR)+PILOT_LINK_MINOR) 00043 #define PILOT_LINK_0_10_0 (1000) 00044 #define PILOT_LINK_0_11_0 (1100) 00045 #define PILOT_LINK_0_11_8 (1108) 00046 #define PILOT_LINK_0_12_0 (1200) 00047 #define PILOT_LINK_0_12_1 (1201) 00048 00049 #if PILOT_LINK_NUMBER < PILOT_LINK_0_12_0 00050 #error "You need at least pilot-link version 0.12.0 for KPilot" 00051 #endif 00052 00053 #define PI_SIZE_T size_t 00054 00055 00056 #endif 00057