00001 /* 00002 * __BEGIN_COPYRIGHT 00003 * SimpleDB: C++ ODBC database API 00004 * Copyright (C) 2006 Eminence Technology Pty Ltd 00005 * Copyright (C) 2008-2010 Russell Kliese 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * This library 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 GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public License 00018 * along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00020 * 00021 * Russell Kliese can be contacted by email: russell [at] kliese [dot] id [dot] au 00022 * 00023 * __END_COPYRIGHT 00024 */ 00025 00026 /* 00027 * The gnu c compiler can generate warnings for deprecated functions 00028 */ 00029 #ifdef __GNUC__ 00030 #define DEPRECATED(x) x __attribute__ ((deprecated)) 00031 #else 00032 #define DEPRECATED(x) x 00033 #endif 00034 00035 /* 00036 * Visual Studio doesn't defines integer types differently to other platforms 00037 */ 00038 #ifdef _MSC_VER 00039 typedef __int8 int8_t; 00040 typedef __int16 int16_t; 00041 typedef __int32 int32_t; 00042 typedef __int64 int64_t; 00043 typedef unsigned __int8 uint8_t; 00044 typedef unsigned __int16 uint16_t; 00045 typedef unsigned __int32 uint32_t; 00046 typedef unsigned __int64 uint64_t; 00047 #endif