| 1 | /* |
| 2 | Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file |
| 3 | |
| 4 | This file is part of 0MQ. |
| 5 | |
| 6 | 0MQ is free software; you can redistribute it and/or modify it under |
| 7 | the terms of the GNU Lesser General Public License as published by |
| 8 | the Free Software Foundation; either version 3 of the License, or |
| 9 | (at your option) any later version. |
| 10 | |
| 11 | 0MQ is distributed in the hope that it will be useful, |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | GNU Lesser General Public License for more details. |
| 15 | |
| 16 | You should have received a copy of the GNU Lesser General Public License |
| 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | #ifndef __JZMQ_HPP_INCLUDED__ |
| 21 | #define __JZMQ_HPP_INCLUDED__cxx . . $ `src/main/c++/jzmq.hpp:21:9`! |
| 22 | |
| 23 | #include "config.hpp"cxx . . $ `<file>/src/main/c++/config.hpp`/ |
| 24 | |
| 25 | #if defined HAVE_INTTYPES_Hcxx . . $ `src/main/c++/config.hpp:8:9`! |
| 26 | |
| 27 | #include <inttypes.h> |
| 28 | |
| 29 | #elif defined HAVE_STDINT_H |
| 30 | |
| 31 | #include <stdint.h> |
| 32 | |
| 33 | #elif defined _MSC_VER |
| 34 | |
| 35 | #ifndef int8_t |
| 36 | typedef signed __int8 int8_t; |
| 37 | #endif |
| 38 | #ifndef int16_t |
| 39 | typedef __int16 int16_t; |
| 40 | #endif |
| 41 | #ifndef int32_t |
| 42 | typedef __int32 int32_t; |
| 43 | #endif |
| 44 | #ifndef int64_t |
| 45 | typedef __int64 int64_t; |
| 46 | #endif |
| 47 | #ifndef uint8_t |
| 48 | typedef unsigned __int8 uint8_t; |
| 49 | #endif |
| 50 | #ifndef uint16_t |
| 51 | typedef unsigned __int16 uint16_t; |
| 52 | #endif |
| 53 | #ifndef uint32_t |
| 54 | typedef unsigned __int32 uint32_t; |
| 55 | #endif |
| 56 | #ifndef uint64_t |
| 57 | typedef unsigned __int64 uint64_t; |
| 58 | #endif |
| 59 | |
| 60 | #else |
| 61 | |
| 62 | #error "Don't know how to define stdint types on this platform" |
| 63 | |
| 64 | #endif |
| 65 | |
| 66 | #endif |