Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields  

config-msvc.h

00001 /*----------------------------------------------------------------------------
00002   SWORD 2000 - Software With Objects for Rapid Development
00003   Copyright (C) 2003 Eric NICOLAS
00004   ----------------------------------------------------------------------------
00005   SWORD is free software; you can redistribute it and/or modify
00006   it under the terms of the GNU Lesser General Public License as published by
00007   the Free Software Foundation; either version 2 of the License, or
00008   (at your option) any later version.
00009 
00010   SWORD 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 Lesser General Public License for more details.
00014 
00015   You should have received a copy of the GNU Lesser General Public License
00016   along with SWORD; if not, write to the Free Software
00017   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018   --------------------------------------------------------------------------*/
00019 #ifndef _SWORD_CONFIG_MSVC_
00020 #define _SWORD_CONFIG_MSVC_
00021 
00022 // Visual Studio Warning disable *must be* before any actual code !
00023 
00024 #pragma warning(disable: 4200) // nonstandard extension used : zero-sized array in struct/union
00025 #pragma warning(disable: 4786) // identifier was truncated to 'number' characters in the debug information
00026 #pragma warning(disable: 4723) // potential divide by 0
00027 #pragma warning(disable: 4251) // class 'type' needs to have dll-interface to be used by clients of class 'type2'
00028 #pragma warning(disable: 4275) // non – DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier'
00029 #pragma warning(disable: 4503) // decorated name length exceeded, name was truncated
00030 
00031 typedef signed   __int64       int64;
00032 typedef signed   long  int     int32;
00033 typedef signed   short int     int16;
00034 typedef signed   char          int8;
00035 
00036 typedef unsigned __int64       word64;
00037 typedef unsigned long  int     word32;
00038 typedef unsigned short int     word16;
00039 typedef unsigned char          word8;
00040 
00041 // (native type)               int;
00042 typedef unsigned int           word;
00043 typedef float                  float32;
00044 typedef double                 float64;
00045 
00046 #define _I8_(a)  a
00047 #define _I16_(a) a
00048 #define _I32_(a) a
00049 #define _I64_(a) a
00050 #define _U8_(a)  a
00051 #define _U16_(a) a
00052 #define _U32_(a) a
00053 #define _U64_(a) a
00054 
00055 #define _I8_printf  "%d"
00056 #define _I16_printf "%d"
00057 #define _I32_printf "%d"
00058 #define _I64_printf "%I64d"
00059 
00060 #define _U8_printf  "%u"
00061 #define _U16_printf "%u"
00062 #define _U32_printf "%u"
00063 #define _U64_printf "%I64u"
00064 
00065 #define _DBL_printf "%.15f"
00066 #define _FLT_printf "%.7f"
00067 #define _CHR_printf "%c"
00068 #define _PTR_printf "@%08X"
00069 
00070 // --- Enable / Disable features
00071 
00072 // Will compile the ODBC DB driver (requires ODBC)
00073 //#define HAVE_DB_ODBC
00074 
00075 // Will compile the SQLite DB driver (requires SQLite)
00076 //#define HAVE_DB_SQLITE
00077 
00078 // Will use the optimised allocator globally
00079 //#define HAVE_GLOBAL_ALLOCATOR
00080 
00081 // Will optimize the library for a 64-bit plateform
00082 //#define HAVE_64BIT
00083 
00084 #endif // _SWORD_CONFIG_MSVC_

Generated on Tue Dec 23 20:08:56 2003 for SWORD by doxygen1.3-rc2