mirror of
https://github.com/izzy2lost/Ghostship.git
synced 2026-03-10 11:52:18 -07:00
12 lines
349 B
C
12 lines
349 B
C
#ifndef PLATFORM_INFO_H
|
|
#define PLATFORM_INFO_H
|
|
|
|
#include <stdint.h>
|
|
#define IS_64_BIT (UINTPTR_MAX == 0xFFFFFFFFFFFFFFFFU)
|
|
#if (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)) || defined(__BIG_ENDIAN__)
|
|
#define IS_BIG_ENDIAN
|
|
#endif
|
|
#define DOUBLE_SIZE_ON_64_BIT(size) ((size) * (sizeof(void *) / 4))
|
|
|
|
#endif // PLATFORM_INFO_H
|