Skip to content

Commit

Permalink
Android + C++17 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
APN-Pucky committed Jun 26, 2019
1 parent 4993429 commit 9e4d03d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tyrant.h
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ std::string to_string(const T val)
return s.str();
}

inline uint8_t byte_bits_count(register uint8_t i)
inline uint8_t byte_bits_count(uint8_t i)
{
i = i - ((i >> 1) & 0x55);
i = (i & 0x33) + ((i >> 2) & 0x33);
Expand Down
10 changes: 9 additions & 1 deletion tyrant_optimize.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@
#include <iostream>
#include <boost/thread/thread.hpp>
#include <chrono>
// OpenMP Header
#ifdef _OPENMP
#include <omp.h>
#endif
// Android Headers
#if defined(ANDROID) || defined(__ANDROID__)
#include <jni.h>
#include <android/log.h>
#endif
//------------------------------------------------------------------------------


struct Requirement
{
std::unordered_map<const Card*, unsigned> num_cards;
Expand Down

0 comments on commit 9e4d03d

Please sign in to comment.