00001 // 00002 // File: include/odbcpp/odbcpp_config.h 00003 // Object: Configure the odbcpp library as required 00004 // Project: http://www.m2osw.com/odbcpp 00005 // Author: alexis_wilke@sourceforge.net 00006 // 00007 // Copyright (C) 2008 Made to Order Software Corp. 00008 // 00009 // This program is free software: you can redistribute it and/or modify 00010 // it under the terms of the GNU General Public License as published by 00011 // the Free Software Foundation, either version 3 of the License, or 00012 // (at your option) any later version. 00013 // 00014 // This program is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 // GNU General Public License for more details. 00018 // 00019 // You should have received a copy of the GNU General Public License 00020 // along with this program. If not, see <http://www.gnu.org/licenses/> 00021 // or <http://gpl3.m2osw.com/>. 00022 // 00023 00024 #ifndef ODBCPP_CONFIG 00025 #define ODBCPP_CONFIG 00026 00027 00028 #if defined(_MSC_VER) || defined(WIN32) 00029 // we need windows.h to be able to include sql.h 00030 #include <windows.h> 00031 #define BIG_ENDIAN 1234 00032 #define LITTLE_ENDIAN 4321 00033 #define BYTE_ORDER LITTLE_ENDIAN 00034 #endif 00035 00036 // used by sqltype.h 00037 // determine whether 'long long' exists; this was taken from 00038 // /usr/include/features.h under Linux. 00039 // it is ignored by Microsoft headers 00040 #if ! defined(HAVE_LONG_LONG) \ 00041 && (defined __GNUC__ \ 00042 || (defined __PGI && defined __i386__ ) \ 00043 || (defined __INTEL_COMPILER && (defined __i386__ || defined __ia64__)) \ 00044 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)) 00045 #define HAVE_LONG_LONG 1 00046 #endif 00047 00048 00049 00050 00051 #endif // #ifndef ODBCPP_CONFIG