Disk ARchive  2.4.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
.pc/delete2/integers.hpp
00001     /*********************************************************************/
00002 // dar - disk archive - a backup/restoration program
00003 // Copyright (C) 2002-2052 Denis Corbin
00004 //
00005 // This program is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU General Public License
00007 // as published by the Free Software Foundation; either version 2
00008 // of the License, or (at your option) any later version.
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 //
00019 // to contact the author : dar.linux@free.fr
00020 /*********************************************************************/
00021 // $Id$
00022 //
00023 /*********************************************************************/
00024 //
00025 
00026 #ifndef INTEGERS_HPP
00027 #define INTEGERS_HPP
00028 
00029 #ifndef OS_BITS
00030 
00031 #include <stdint.h>
00032 #define U_16 uint16_t
00033 #define U_32 uint32_t
00034 #define U_64 uint64_t
00035 #define U_I  unsigned int
00036 #define S_16 int16_t
00037 #define S_32 int32_t
00038 #define S_64 int64_t
00039 #define S_I signed int
00040 
00041 #else  //  OS_BITS not defined
00042 #if OS_BITS == 32
00043 
00044 #define U_16 unsigned short
00045 #define U_32 unsigned long
00046 #define U_64 unsigned long long
00047 #define U_I unsigned int 
00048 #define S_16 signed short
00049 #define S_32 signed long
00050 #define S_64 signed long long
00051 #define S_I signed int
00052 
00053 #else
00054 #if "OS_BITS" == 64
00055 
00056 #define U_16 unsigned short
00057 #define U_32 unsigned int
00058 #define U_64 unsigned long long
00059 #define U_I  unsigned int
00060 #define S_16 signed short
00061 #define S_32 signed int
00062 #define S_64 signed long long
00063 #define S_I signed int
00064 
00065 #else
00066 #error // unknown OS_BITS value
00067     // the previous line will not compile, this is the expected behaviour
00068 
00069 #endif // OS_BITS == 64
00070 #endif // OS_BITS == 32
00071 #endif // OS_BITS not defined
00072 
00073 #endif // ifndef
00074 
00075 
00076 
00077 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines