Program Listing for File stdint.h

Return to documentation for file (api/include/pntos/stdint.h)

#pragma once
/* Fallback to platform specific lengths on C89 */
#ifdef PNTOS_NO_STDINT

typedef char int8_t;
typedef short int int16_t;
typedef int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;

#   ifdef PNTOS_LONG_LONG
typedef long long int64_t;
typedef unsigned long long uint64_t;
#   else  /* PNTOS_LONG_LONG */
typedef long int64_t;
typedef unsigned long uint64_t;
#   endif /* PNTOS_LONG_LONG */

#else /* PNTOS_NO_STDINT */
#   include <stdint.h>
#endif /* PNTOS_NO_STDINT */