Skip to content

Commit

Permalink
add android umap and set; bunch of gnustl headers (#1084)
Browse files Browse the repository at this point in the history
* add android umap and set; bunch of gnustl headers

* slight change
  • Loading branch information
dankmeme01 authored Sep 16, 2024
1 parent 264cb28 commit 60a528a
Show file tree
Hide file tree
Showing 27 changed files with 13,954 additions and 4 deletions.
14 changes: 10 additions & 4 deletions loader/include/Geode/c++stl/gnustl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ namespace geode::base {
#if defined(GEODE_IS_ANDROID)

#include "gnustl-map.hpp"
#include "gnustl/unordered_map.hpp"
#include "gnustl/unordered_set.hpp"
#include "gnustl/hash_specialization.hpp"
#undef _GLIBCXX_RELEASE
#undef __GLIBCXX__
#undef _GLIBCXX_USE_DUAL_ABI

namespace gd {
using namespace geode::stl;
Expand Down Expand Up @@ -686,11 +692,11 @@ namespace gd {
template <class V>
using set = void*[6];

template <class K, class V>
using unordered_map = void*[7];
template <class Key, class Tp, class Hash = geode::stl::hash<Key>, class Pred = geode::stl::equal_to<Key>, class Alloc = std::allocator<std::pair<const Key, Tp>>>
using unordered_map = geode::stl::unordered_map<Key, Tp, Hash, Pred, Alloc>;

template <class V>
using unordered_set = void*[7];
template <class Value, class Hash = geode::stl::hash<Value>, class Pred = geode::stl::equal_to<Value>, class Alloc = std::allocator<Value>>
using unordered_set = geode::stl::unordered_set<Value, Hash, Pred, Alloc>;
};

#elif defined(GEODE_IS_IOS)
Expand Down
Loading

0 comments on commit 60a528a

Please sign in to comment.