cstdint.hpp
Go to the documentation of this file.
00001 /* 00002 Copyright 2005-2007 Adobe Systems Incorporated 00003 Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt 00004 or a copy at http://stlab.adobe.com/licenses.html) 00005 */ 00006 00007 /*************************************************************************************************/ 00008 00009 #ifndef ADOBE_CSTDINT_HPP 00010 #define ADOBE_CSTDINT_HPP 00011 00012 #include <adobe/config.hpp> 00013 00014 #include <boost/cstdint.hpp> 00015 #include <boost/static_assert.hpp> 00016 00017 #if BOOST_MSVC 00018 #include <cstddef> 00019 #endif 00020 00021 /*************************************************************************************************/ 00022 00023 namespace adobe { 00024 00031 /*************************************************************************************************/ 00032 00033 #if defined(BOOST_HAS_STDINT_H) || defined(BOOST_MSVC) 00034 00035 using ::intptr_t; 00036 using ::uintptr_t; 00037 00038 #else 00039 00040 typedef long intptr_t; 00041 typedef unsigned long uintptr_t; 00042 00043 #endif 00044 00045 BOOST_STATIC_ASSERT(!(sizeof(intptr_t) < sizeof(void*))); 00046 BOOST_STATIC_ASSERT(!(sizeof(uintptr_t) < sizeof(void*))); 00047 00049 /*************************************************************************************************/ 00050 } // namespace adobe 00051 00052 /*************************************************************************************************/ 00053 00054 #endif |