mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-05 16:52:06 +01:00
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
24 lines
584 B
C
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
|