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

config-gcc.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_GCC_
00020 #define _SWORD_CONFIG_GCC_
00021 
00022 #ifdef __CYGWIN__     // GCC Cygwin port means we are running on Ms-Windows
00023 #  define WIN32
00024 #else                 // Otherwise we will assume we run a Unix flavour
00025 #  define POSIX
00026 #  define HAVE_DIRENT_H 1
00027 #endif
00028 
00029 typedef signed   long long int int64;
00030 typedef signed   long      int int32;
00031 typedef signed   short     int int16;
00032 typedef signed   char          int8;
00033 typedef unsigned long long int word64;
00034 typedef unsigned long      int word32;
00035 typedef unsigned short     int word16;
00036 typedef unsigned char          word8;
00037 
00038 // (native type)               int;
00039 typedef unsigned int           word;
00040 typedef float                  float32;
00041 typedef double                 float64;
00042 
00043 #define _I8_(a)  a
00044 #define _I16_(a) a
00045 #define _I32_(a) a##L
00046 #define _I64_(a) a##LL
00047 #define _U8_(a)  a
00048 #define _U16_(a) a##U
00049 #define _U32_(a) a##UL
00050 #define _U64_(a) a##ULL
00051 
00052 #define _I64_printf "%Ld"
00053 #define _U64_printf "%Lu"
00054 #define _DBL_printf "%.15f"
00055 #define _FLT_printf "%.7f"
00056 #define _CHR_printf "%c"
00057 #define _PTR_printf "@%08X"
00058 
00059 #define SWORDDECL
00060 
00061 #endif // _SWORD_CONFIG_GCC_

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