elfhacks: check UINTPTR_MAX size of architecture bitness instead

pull/109/head
jackun 4 years ago
parent 1915352c86
commit f1c8acdb0f
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -28,9 +28,10 @@
Pyry Haulos <pyry.haulos@gmail.com> Pyry Haulos <pyry.haulos@gmail.com>
*/ */
#pragma once
#include <elf.h> #include <elf.h>
#include <link.h> #include <link.h>
#include <stdint.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -38,10 +39,9 @@ extern "C" {
#define __PUBLIC __attribute__ ((visibility ("default"))) #define __PUBLIC __attribute__ ((visibility ("default")))
#ifdef __x86_64__ #if UINTPTR_MAX == 0xffffffffffffffff
# define __elf64 # define __elf64
#endif #else
#ifdef __i386__
# define __elf32 # define __elf32
#endif #endif

Loading…
Cancel
Save