![]() |
libzmq master
The Intelligent Transport Layer
|
00001 /* 00002 Copyright (c) 2007-2009 iMatix Corporation 00003 Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file 00004 00005 This file is part of 0MQ. 00006 00007 0MQ is free software; you can redistribute it and/or modify it under 00008 the terms of the GNU Lesser General Public License as published by 00009 the Free Software Foundation; either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 0MQ is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 #ifndef __ZMQ_STDINT_HPP_INCLUDED__ 00022 #define __ZMQ_STDINT_HPP_INCLUDED__ 00023 00024 #include "platform.hpp" 00025 00026 #if defined ZMQ_HAVE_SOLARIS || defined ZMQ_HAVE_OPENVMS 00027 00028 #include <inttypes.h> 00029 00030 #elif defined _MSC_VER 00031 00032 #ifndef int8_t 00033 typedef __int8 int8_t; 00034 #endif 00035 #ifndef int16_t 00036 typedef __int16 int16_t; 00037 #endif 00038 #ifndef int32_t 00039 typedef __int32 int32_t; 00040 #endif 00041 #ifndef int64_t 00042 typedef __int64 int64_t; 00043 #endif 00044 #ifndef uint8_t 00045 typedef unsigned __int8 uint8_t; 00046 #endif 00047 #ifndef uint16_t 00048 typedef unsigned __int16 uint16_t; 00049 #endif 00050 #ifndef uint32_t 00051 typedef unsigned __int32 uint32_t; 00052 #endif 00053 #ifndef uint64_t 00054 typedef unsigned __int64 uint64_t; 00055 #endif 00056 00057 #else 00058 00059 #include <stdint.h> 00060 00061 #endif 00062 00063 #endif