1/* include/Inventor/system/inttypes.h. Generated from inttypes.h.cmake.in by CMake. */ 2#ifndef COIN_INTTYPES_H 3#define COIN_INTTYPES_H 4 5/**************************************************************************\ 6 * Copyright (c) Kongsberg Oil & Gas Technologies AS 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions are 11 * met: 12 * 13 * Redistributions of source code must retain the above copyright notice, 14 * this list of conditions and the following disclaimer. 15 * 16 * Redistributions in binary form must reproduce the above copyright 17 * notice, this list of conditions and the following disclaimer in the 18 * documentation and/or other materials provided with the distribution. 19 * 20 * Neither the name of the copyright holder nor the names of its 21 * contributors may be used to endorse or promote products derived from 22 * this software without specific prior written permission. 23 * 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 25 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 27 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 28 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 29 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 30 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 31 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35\**************************************************************************/ 36 37/* 38 This file defines the following types: 39 40 int8_t uint8_t 41 int16_t uint16_t 42 int32_t uint32_t 43 int64_t uint64_t 44 intptr_t uintptr_t 45 46 (The 64-bit types are not guaranteed to be present, check for 47 HAVE_INT64_T and HAVE_UINT64_T.) 48*/ 49 50/***************************************************************************/ 51 52/* Block of defines set up by the configure script. Protected with the 53 #ifndef wrapper in case config.h was already included -- so we 54 don't confuse the compiler to think we redefine already #define'd 55 constants. */ 56#ifndef COIN_CONFIGURE_BUILD /* (start wrapper) */ 57 58/* 59 This file was autogenerated by our configuration process 60 specifically for this build configuration: 61*/ 62#define COIN_CONFIGURE_HOST @CMAKE_HOST_SYSTEM_PROCESSOR@_@CMAKE_HOST_SYSTEM_NAME@ 63#define COIN_CONFIGURE_TARGET @CMAKE_SYSTEM_PROCESSOR@_@CMAKE_SYSTEM_NAME@ 64/* 65 The bit-type definitions may also be dependent on the compiler, 66 compiler version and C library. 67 68 So note that the bit-type definitions below might not match on other 69 systems. Be extremely careful if you for whatever reason is 70 installing this as a cross-platform header file (i.e.: you 71 shouldn't). 72*/ 73 74/* FIXME: isn't it likely that the HAVE_*_H defines below could crash 75 with defines in application code in a project using Autoconf 76 configure? 20010711 mortene. */ 77 78/* The <inttypes.h> header file. */ 79#cmakedefine HAVE_INTTYPES_H 1 80/* The <stdint.h> header file. */ 81#cmakedefine HAVE_STDINT_H 1 82/* The <sys/types.h> header file. */ 83#cmakedefine HAVE_SYS_TYPES_H 1 84/* The <stddef.h> header file. */ 85#cmakedefine HAVE_STDDEF_H 1 86 87 88/* If the system defines any of the types "on it's own", the 89 respective #define will be set below. */ 90#cmakedefine HAVE_INT8_T 1 91#cmakedefine HAVE_UINT8_T 1 92#cmakedefine HAVE_INT16_T 1 93#cmakedefine HAVE_UINT16_T 1 94#cmakedefine HAVE_INT32_T 1 95#cmakedefine HAVE_UINT32_T 1 96#cmakedefine HAVE_INT64_T 1 97#cmakedefine HAVE_UINT64_T 1 98#cmakedefine HAVE_INTPTR_T 1 99#cmakedefine HAVE_UINTPTR_T 1 100 101/* The type which the configure script found to match the given 102 bitwidth. */ 103#cmakedefine COIN_INT8_T @COIN_INT8_T@ 104#cmakedefine COIN_UINT8_T @COIN_UINT8_T@ 105#cmakedefine COIN_INT16_T @COIN_INT16_T@ 106#cmakedefine COIN_UINT16_T @COIN_UINT16_T@ 107#cmakedefine COIN_INT32_T @COIN_INT32_T@ 108#cmakedefine COIN_UINT32_T @COIN_UINT32_T@ 109#cmakedefine COIN_INT64_T @COIN_INT64_T@ 110#cmakedefine COIN_UINT64_T @COIN_UINT64_T@ 111#cmakedefine COIN_INTPTR_T @COIN_INTPTR_T@ 112#cmakedefine COIN_UINTPTR_T @COIN_UINTPTR_T@ 113 114#endif /* (end wrapper) ! COIN_CONFIGURE_BUILD */ 115 116 117/* The header files should be listed in the same order as they are in 118 the SIM_AC_DEFINE_BYTESIZE_TYPES detection macro. This is the same 119 order as the one Autoconf (currently upcoming 2.51) is using for its 120 standard includes. 20010711 larsa */ 121#ifdef HAVE_INTTYPES_H 122#include <inttypes.h> 123#else 124#ifdef HAVE_STDINT_H 125#include <stdint.h> 126#endif /* HAVE_STDINT_H */ 127#endif 128#ifdef HAVE_SYS_TYPES_H 129#include <sys/types.h> 130#endif /* HAVE_SYS_TYPES_H */ 131#ifdef HAVE_STDDEF_H 132#include <stddef.h> 133#endif /* HAVE_STDDEF_H */ 134 135 136#if !defined(HAVE_INT8_T) && defined(COIN_INT8_T) 137typedef COIN_INT8_T int8_t; 138#define HAVE_INT8_T 1 139#endif /* !HAVE_INT8_T && COIN_INT8_T */ 140 141#if !defined(HAVE_UINT8_T) && defined(COIN_UINT8_T) 142typedef COIN_UINT8_T uint8_t; 143#define HAVE_UINT8_T 1 144#endif /* !HAVE_UINT8_T && COIN_UINT8_T */ 145 146#if !defined(HAVE_INT16_T) && defined(COIN_INT16_T) 147typedef COIN_INT16_T int16_t; 148#define HAVE_INT16_T 1 149#endif /* !HAVE_INT16_T && COIN_INT16_T */ 150 151#if !defined(HAVE_UINT16_T) && defined(COIN_UINT16_T) 152typedef COIN_UINT16_T uint16_t; 153#define HAVE_UINT16_T 1 154#endif /* !HAVE_UINT16_T && COIN_UINT16_T */ 155 156#if !defined(HAVE_INT32_T) && defined(COIN_INT32_T) 157typedef COIN_INT32_T int32_t; 158#define HAVE_INT32_T 1 159#endif /* !HAVE_INT32_T && COIN_INT32_T */ 160 161#if !defined(HAVE_UINT32_T) && defined(COIN_UINT32_T) 162typedef COIN_UINT32_T uint32_t; 163#define HAVE_UINT32_T 1 164#endif /* !HAVE_UINT32_T && COIN_UINT32_T */ 165 166#if !defined(HAVE_INT64_T) && defined(COIN_INT64_T) 167typedef COIN_INT64_T int64_t; 168#define HAVE_INT64_T 1 169#endif /* !HAVE_INT64_T && COIN_INT64_T */ 170 171#if !defined(HAVE_UINT64_T) && defined(COIN_UINT64_T) 172typedef COIN_UINT64_T uint64_t; 173#define HAVE_UINT64_T 1 174#endif /* !HAVE_UINT64_T && COIN_UINT64_T */ 175 176#if !defined(HAVE_INTPTR_T) && defined(COIN_INTPTR_T) 177typedef COIN_INTPTR_T intptr_t; 178#define HAVE_INTPTR_T 1 179#endif /* !HAVE_INTPTR_T && COIN_INTPTR_T */ 180 181#if !defined(HAVE_UINTPTR_T) && defined(COIN_UINTPTR_T) 182typedef COIN_UINTPTR_T uintptr_t; 183#define HAVE_UINTPTR_T 1 184#endif /* !HAVE_UINTPTR_T && COIN_UINTPTR_T */ 185 186#endif /* !COIN_INTTYPES_H */ 187