Types.h
Go to the documentation of this file.
00001 //
00002 // Types.h
00003 //
00004 // $Id: //poco/1.3/Foundation/include/Poco/Types.h#1 $
00005 //
00006 // Library: Foundation
00007 // Package: Core
00008 // Module:  Types
00009 //
00010 // Definitions of fixed-size integer types for various platforms
00011 //
00012 // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
00013 // and Contributors.
00014 //
00015 // Permission is hereby granted, free of charge, to any person or organization
00016 // obtaining a copy of the software and accompanying documentation covered by
00017 // this license (the "Software") to use, reproduce, display, distribute,
00018 // execute, and transmit the Software, and to prepare derivative works of the
00019 // Software, and to permit third-parties to whom the Software is furnished to
00020 // do so, all subject to the following:
00021 // 
00022 // The copyright notices in the Software and this entire statement, including
00023 // the above license grant, this restriction and the following disclaimer,
00024 // must be included in all copies of the Software, in whole or in part, and
00025 // all derivative works of the Software, unless such copies or derivative
00026 // works are solely in the form of machine-executable object code generated by
00027 // a source language processor.
00028 // 
00029 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00030 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00031 // FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
00032 // SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
00033 // FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
00034 // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00035 // DEALINGS IN THE SOFTWARE.
00036 //
00037 
00038 
00039 #ifndef Foundation_Types_INCLUDED
00040 #define Foundation_Types_INCLUDED
00041 
00042 
00043 #include "Poco/Foundation.h"
00044 
00045 
00046 namespace Poco {
00047 
00048 
00049 #if defined(_MSC_VER)
00050         //
00051         // Windows/Visual C++
00052         //
00053         typedef signed char            Int8;
00054         typedef unsigned char          UInt8;
00055         typedef signed short           Int16;
00056         typedef unsigned short         UInt16;
00057         typedef signed int             Int32;
00058         typedef unsigned int           UInt32;
00059         typedef signed __int64         Int64;
00060         typedef unsigned __int64       UInt64;
00061         #if defined(_WIN64)
00062                 #define POCO_PTR_IS_64_BIT 1
00063                 typedef signed __int64     IntPtr;
00064                 typedef unsigned __int64   UIntPtr;
00065         #else
00066                 typedef signed long        IntPtr;
00067                 typedef unsigned long      UIntPtr;
00068         #endif
00069         #define POCO_HAVE_INT64 1
00070 #elif defined(__GNUC__)
00071         //
00072         // Unix/GCC
00073         //
00074         typedef signed char            Int8;
00075         typedef unsigned char          UInt8;
00076         typedef signed short           Int16;
00077         typedef unsigned short         UInt16;
00078         typedef signed int             Int32;
00079         typedef unsigned int           UInt32;
00080         typedef signed long            IntPtr;
00081         typedef unsigned long          UIntPtr;
00082         #if defined(__LP64__)
00083                 #define POCO_PTR_IS_64_BIT 1
00084                 #define POCO_LONG_IS_64_BIT 1
00085                 typedef signed long        Int64;
00086                 typedef unsigned long      UInt64;
00087         #else
00088                 typedef signed long long   Int64;
00089                 typedef unsigned long long UInt64;
00090         #endif
00091         #define POCO_HAVE_INT64 1
00092 #elif defined(__DECCXX)
00093         //
00094         // Compaq C++
00095         //
00096         typedef signed char            Int8;
00097         typedef unsigned char          UInt8;
00098         typedef signed short           Int16;
00099         typedef unsigned short         UInt16;
00100         typedef signed int             Int32;
00101         typedef unsigned int           UInt32;
00102         typedef signed __int64         Int64;
00103         typedef unsigned __int64       UInt64;
00104         #if defined(__VMS)
00105                 #if defined(__32BITS)
00106                         typedef signed long    IntPtr;
00107                         typedef unsigned long  UIntPtr;
00108                 #else
00109                         typedef Int64          IntPtr;
00110                         typedef UInt64         UIntPtr;
00111                         #define POCO_PTR_IS_64_BIT 1
00112                 #endif
00113         #else
00114                 typedef signed long        IntPtr;
00115                 typedef unsigned long      UIntPtr;
00116                 #define POCO_PTR_IS_64_BIT 1
00117                 #define POCO_LONG_IS_64_BIT 1
00118         #endif
00119         #define POCO_HAVE_INT64 1
00120 #elif defined(__HP_aCC)
00121         //
00122         // HP Ansi C++
00123         //
00124         typedef signed char            Int8;
00125         typedef unsigned char          UInt8;
00126         typedef signed short           Int16;
00127         typedef unsigned short         UInt16;
00128         typedef signed int             Int32;
00129         typedef unsigned int           UInt32;
00130         typedef signed long            IntPtr;
00131         typedef unsigned long          UIntPtr;
00132         #if defined(__LP64__)
00133                 #define POCO_PTR_IS_64_BIT 1
00134                 #define POCO_LONG_IS_64_BIT 1
00135                 typedef signed long        Int64;
00136                 typedef unsigned long      UInt64;
00137         #else
00138                 typedef signed long long   Int64;
00139                 typedef unsigned long long UInt64;
00140         #endif
00141         #define POCO_HAVE_INT64 1
00142 #elif defined(__SUNPRO_CC)
00143         //
00144         // SUN Forte C++
00145         //
00146         typedef signed char            Int8;
00147         typedef unsigned char          UInt8;
00148         typedef signed short           Int16;
00149         typedef unsigned short         UInt16;
00150         typedef signed int             Int32;
00151         typedef unsigned int           UInt32;
00152         typedef signed long            IntPtr;
00153         typedef unsigned long          UIntPtr;
00154         #if defined(__sparcv9)
00155                 #define POCO_PTR_IS_64_BIT 1
00156                 #define POCO_LONG_IS_64_BIT 1
00157                 typedef signed long        Int64;
00158                 typedef unsigned long      UInt64;
00159         #else
00160                 typedef signed long long   Int64;
00161                 typedef unsigned long long UInt64;
00162         #endif
00163         #define POCO_HAVE_INT64 1
00164 #elif defined(__IBMCPP__) 
00165         //
00166         // IBM XL C++
00167         //
00168         typedef signed char            Int8;
00169         typedef unsigned char          UInt8;
00170         typedef signed short           Int16;
00171         typedef unsigned short         UInt16;
00172         typedef signed int             Int32;
00173         typedef unsigned int           UInt32;
00174         typedef signed long            IntPtr;
00175         typedef unsigned long          UIntPtr;
00176         #if defined(__64BIT__)
00177                 #define POCO_PTR_IS_64_BIT 1
00178                 #define POCO_LONG_IS_64_BIT 1
00179                 typedef signed long        Int64;
00180                 typedef unsigned long      UInt64;
00181         #else
00182                 typedef signed long long   Int64;
00183                 typedef unsigned long long UInt64;
00184         #endif
00185         #define POCO_HAVE_INT64 1
00186 #elif defined(__sgi) 
00187         //
00188         // MIPSpro C++
00189         //
00190         typedef signed char            Int8;
00191         typedef unsigned char          UInt8;
00192         typedef signed short           Int16;
00193         typedef unsigned short         UInt16;
00194         typedef signed int             Int32;
00195         typedef unsigned int           UInt32;
00196         typedef signed long            IntPtr;
00197         typedef unsigned long          UIntPtr;
00198         #if _MIPS_SZLONG == 64
00199                 #define POCO_PTR_IS_64_BIT 1
00200                 #define POCO_LONG_IS_64_BIT 1
00201                 typedef signed long        Int64;
00202                 typedef unsigned long      UInt64;
00203         #else
00204                 typedef signed long long   Int64;
00205                 typedef unsigned long long UInt64;
00206         #endif
00207         #define POCO_HAVE_INT64 1
00208 #endif
00209 
00210 
00211 } // namespace Poco
00212 
00213 
00214 #endif // Foundation_Types_INCLUDED


pluginlib
Author(s): Tully Foote and Eitan Marder-Eppstein
autogenerated on Sat Dec 28 2013 17:20:19