Skip to content

Commit

Permalink
Support arm64-linux variant hosts.
Browse files Browse the repository at this point in the history
Some versions of gcc doesn't provide `__arm64` as a pre-defined macro.
  • Loading branch information
monaka authored Dec 9, 2021
1 parent 89840d3 commit fe00301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inc/std_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ typedef uint32 CoreIdType;
#define CAST_UINT32_TO_ADDR(uint32_data) ( (void*)((uint32)(uint32_data)) )
#elif __x86_64__
#define CAST_UINT32_TO_ADDR(uint32_data) ( (void*)((uint64)(uint32_data)) )
#elif __arm64
#elif defined(__arm64) || defined(__arm64__) || defined(__aarch64__)
#define CAST_UINT32_TO_ADDR(uint32_data) ( (void*)((uint64)(uint32_data)) )
#else
#error "unknown arch."
Expand Down

0 comments on commit fe00301

Please sign in to comment.