Skip to content

Commit

Permalink
Use long long data type for both WIN32 and Android platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongseok-meta authored and nem0 committed Jun 21, 2024
1 parent 6a2ba72 commit 0bd2624
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ofbx.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ namespace ofbx
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef long long i64;
typedef unsigned long long u64;
#if defined(_WIN32) || defined(__ANDROID__)
typedef long long i64;
typedef unsigned long long u64;
#else
typedef long i64;
typedef unsigned long u64;
#endif

static_assert(sizeof(u8) == 1, "u8 is not 1 byte");
static_assert(sizeof(u32) == 4, "u32 is not 4 bytes");
Expand Down

0 comments on commit 0bd2624

Please sign in to comment.