#ifndef _INTTYPES_H
#define _INTTYPES_H

#ifdef __STDC_VERSION__
 #if __STDC_VERSION__ >= 199901
  #include <stdint.h>
  #define __inttypes_defined
 #endif
#endif

#ifndef __inttypes_defined
 /* default inttypes.h for people who do not have it on their system */
 #if (!defined __int8_t_defined) && (!defined __BIT_TYPES_DEFINED__)
  #define __int8_t_defined
  typedef signed char int8_t;
  typedef signed short int16_t;
  typedef signed int int32_t;
  typedef signed long long int64_t;
 #endif
 #if (!defined _LINUX_TYPES_H)
  typedef unsigned char uint8_t;
  typedef unsigned short uint16_t;
  typedef unsigned int uint32_t;
  typedef unsigned long long uint64_t;
 #endif
#endif

#endif
