Skip to content

Commit

Permalink
sim inttypes/stdint.h: Use CONFIG_HOST_MACOS instead of __APPLE__
Browse files Browse the repository at this point in the history
An update after #2283
  • Loading branch information
yamt committed Nov 18, 2020
1 parent 9bc2c99 commit 45a1d68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/sim/include/inttypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* Pre-processor Definitions
****************************************************************************/

#if defined(__APPLE__)
#if defined(CONFIG_HOST_MACOS)
# define _PRI64PREFIX "ll"
# define _SCN64PREFIX "ll"
# define INT64_C(x) x ## ll
Expand Down
2 changes: 1 addition & 1 deletion arch/sim/include/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ typedef unsigned int _uint32_t;
* - int64_t is long for Ubuntu x86-64
*/

#if defined(__APPLE__) || !defined(_LP64)
#if defined(CONFIG_HOST_MACOS) || !defined(_LP64)
typedef signed long long _int64_t;
typedef unsigned long long _uint64_t;
#else
Expand Down

0 comments on commit 45a1d68

Please sign in to comment.