mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-02 07:10:36 +08:00
Avoid multiple asset_manager definition on Android
Using TINYGLTF_IMPLEMENTATION to make the actual definition of the 'asset_manager' global variable.
This commit is contained in:
parent
091a1fcc1a
commit
264ae4c131
@ -200,7 +200,11 @@ namespace tinygltf {
|
|||||||
|
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
#ifdef TINYGLTF_ANDROID_LOAD_FROM_ASSETS
|
#ifdef TINYGLTF_ANDROID_LOAD_FROM_ASSETS
|
||||||
|
#ifdef TINYGLTF_IMPLEMENTATION
|
||||||
AAssetManager *asset_manager = nullptr;
|
AAssetManager *asset_manager = nullptr;
|
||||||
|
#else
|
||||||
|
extern AAssetManager *asset_manager;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user