Skip to content

Commit

Permalink
platform: add CR_ANDROID define to fix build for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
jeefo committed Jan 27, 2024
1 parent a7cf1ea commit fa4e412
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crlib/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ CR_NAMESPACE_BEGIN
# define CR_WINDOWS
#endif

#if defined(__ANDROID__)
# define CR_ANDROID
#endif

#if !defined (CR_DEBUG) && (defined(DEBUG) || defined(_DEBUG))
# define CR_DEBUG
#endif
Expand Down Expand Up @@ -228,6 +232,7 @@ constexpr auto kPathSeparator = "/";
#include <time.h>

CR_NAMESPACE_BEGIN

// undef bzero under android
#if defined (CR_ANDROID)
# undef bzero
Expand Down

0 comments on commit fa4e412

Please sign in to comment.