XPtypes.hh

Go to the documentation of this file.
00001 #ifndef __XPTYPES_H
00002 #define __XPTYPES_H
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                            X P t y p e s . h h                             */
00006 /*                                                                            */
00007 /* (c) 2012 by the Board of Trustees of the Leland Stanford, Jr., University  */
00008 /*                            All Rights Reserved                             */
00009 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00010 /*              DE-AC02-76-SFO0515 with the Department of Energy              */
00011 /*                                                                            */
00012 /* This file is part of the XRootD software suite.                            */
00013 /*                                                                            */
00014 /* XRootD is free software: you can redistribute it and/or modify it under    */
00015 /* the terms of the GNU Lesser General Public License as published by the     */
00016 /* Free Software Foundation, either version 3 of the License, or (at your     */
00017 /* option) any later version.                                                 */
00018 /*                                                                            */
00019 /* XRootD is distributed in the hope that it will be useful, but WITHOUT      */
00020 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or      */
00021 /* FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public       */
00022 /* License for more details.                                                  */
00023 /*                                                                            */
00024 /* You should have received a copy of the GNU Lesser General Public License   */
00025 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file  */
00026 /* COPYING (GPL license).  If not, see <http://www.gnu.org/licenses/>.        */
00027 /*                                                                            */
00028 /* The copyright holder's institutional names and contributor's names may not */
00029 /* be used to endorse or promote products derived from this software without  */
00030 /* specific prior written permission of the institution or contributor.       */
00031 /******************************************************************************/
00032 
00033 // Full range type compatibility work done by Gerardo Ganis, CERN.
00034 
00035 // Typical data types
00036 //
00037 // Only char and short are truly portable types
00038 typedef unsigned char  kXR_char;
00039 typedef short          kXR_int16;
00040 typedef unsigned short kXR_unt16;
00041 
00042 // Signed integer 4 bytes
00043 //
00044 #ifndef XR__INT16
00045 #   if defined(LP32) || defined(__LP32) || defined(__LP32__) || \
00046        defined(BORLAND)
00047 #      define XR__INT16
00048 #   endif
00049 #endif
00050 #ifndef XR__INT64
00051 #   if defined(ILP64) || defined(__ILP64) || defined(__ILP64__)
00052 #      define XR__INT64
00053 #   endif
00054 #endif
00055 #if defined(XR__INT16)
00056 typedef long           kXR_int32;
00057 typedef unsigned long  kXR_unt32;
00058 #elif defined(XR__INT64)
00059 typedef int32          kXR_int32;
00060 typedef unsigned int32 kXR_unt32;
00061 #else
00062 typedef int            kXR_int32;
00063 typedef unsigned int   kXR_unt32;
00064 #endif
00065 
00066 // Signed integer 8 bytes
00067 //
00068 //#if defined(_WIN32)
00069 //typedef __int64        kXR_int64;
00070 //#else
00071 typedef long long      kXR_int64;
00072 //#endif
00073 #endif

Generated on 16 Jan 2014 for xrootd by  doxygen 1.4.7