libdballe 4.0.18
|
00001 /* 00002 * DB-ALLe - Archive for punctual meteorological data 00003 * 00004 * Copyright (C) 2005,2006 ARPA-SIM <urpsim@smr.arpa.emr.it> 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 * 00019 * Author: Enrico Zini <enrico@enricozini.com> 00020 */ 00021 00022 #ifndef DBALLE_DB_ODBC_WORKAROUNDS_H 00023 #define DBALLE_DB_ODBC_WORKAROUNDS_H 00024 00025 #include <bits/wordsize.h> 00026 00035 #if __WORDSIZE == 64 00036 #define DBALLE_SQL_C_SINT_TYPE long 00037 #define DBALLE_SQL_C_UINT_TYPE unsigned long 00038 #define DBALLE_SQL_C_SINT SQL_C_SBIGINT 00039 #define DBALLE_SQL_C_UINT SQL_C_UBIGINT 00040 #else 00041 #define DBALLE_SQL_C_SINT_TYPE long 00042 #define DBALLE_SQL_C_UINT_TYPE unsigned long 00043 #define DBALLE_SQL_C_SINT SQL_C_SLONG 00044 #define DBALLE_SQL_C_UINT SQL_C_ULONG 00045 #endif 00046 00047 #endif