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>
*/
#pragma once
#include <elf.h>
#include <link.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
@ -38,10 +39,9 @@ extern "C" {
#define __PUBLIC __attribute__ ((visibility ("default")))
#ifdef __x86_64__
#if UINTPTR_MAX == 0xffffffffffffffff
# define __elf64
#endif
#ifdef __i386__
#else
# define __elf32
#endif

Loading…
Cancel
Save