aports/main/xen/stdint_local.h
Natanael Copa bcf7b52774 main/xen: fix hvmloader
hvmloader is 32 bit but pulled in 64bit stdint from musl headers. we solve
this by providing our own stdint_local.h

elf.h pulls in stdint.h too so we ship our own elf_local.h too

ref #3308
2014-08-25 11:03:34 +00:00

24 lines
584 B
C

/* 32 bit int types */
#ifndef STDINT_LOCAL_H
#define STDINT_LOCAL_H
typedef signed char int8_t;
typedef short int int16_t;
typedef int int32_t;
# if defined(__x86_64__)
typedef long int int64_t;
#else
typedef long long int int64_t;
#endif
/* Unsigned. */
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
# if defined(__x86_64__)
typedef unsigned long int uint64_t;
#else
typedef unsigned long long int uint64_t;
#endif
#endif