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