1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-30 08:24:05 +00:00
GLideN64/src/porting.h

21 lines
272 B
C
Raw Normal View History

2022-01-16 17:27:17 +00:00
#pragma once
#include <stdint.h>
#if UINTPTR_MAX == 0xffffffff
#elif UINTPTR_MAX == 0xffffffffffffffff
#define IS_64_BIT 1
#else
/* wtf */
#endif
#ifdef NATIVE
#ifdef IS_64_BIT
#define word uint64_t
#else
#define word uint32_t
#endif
#else
#define word uint32_t
#endif