Skip to content

Commit

Permalink
XZRE_SLIM: assume uint64_t and friends are available as built-in types
Browse files Browse the repository at this point in the history
  • Loading branch information
smx-smx committed Apr 17, 2024
1 parent 1f11112 commit fa09d5d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions xzre.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,17 @@
#include <sys/select.h>
#endif

#ifndef XZRE_SLIM
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef uintptr_t uptr;
#else
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long long int u64;

#ifdef XZRE_SLIM
typedef unsigned long int size_t;
typedef signed long int ssize_t;
typedef size_t uid_t;
typedef size_t gid_t;
typedef uint64_t uptr;
typedef uptr
Elf64_Ehdr, Elf64_Phdr, Elf64_Dyn, Elf64_Sym, Elf64_Rela, Elf64_Relr,
Elf64_Verdef, Elf64_Versym, sigset_t, fd_set, EVP_PKEY, RSA, DSA,
Expand Down

0 comments on commit fa09d5d

Please sign in to comment.