Super Mario 64 OpenGL port for PC. Mirror of https://github.com/sm64pc/sm64pc
https://github.com/sm64pc/sm64pc
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
339 B
15 lines
339 B
#ifndef PLATFORM_INFO_H
|
|
#define PLATFORM_INFO_H
|
|
|
|
#ifdef TARGET_N64
|
|
#define IS_64_BIT 0
|
|
#define IS_BIG_ENDIAN 1
|
|
#else
|
|
#include <stdint.h>
|
|
#define IS_64_BIT (UINTPTR_MAX == 0xFFFFFFFFFFFFFFFFU)
|
|
#define IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
|
|
#endif
|
|
|
|
#define DOUBLE_SIZE_ON_64_BIT(size) ((size) * (sizeof(void *) / 4))
|
|
|
|
#endif
|
|
|