Move TINYOBJLOADER_IMPLEMENTATION outside of TINY_OBJ_LOADER_H_ ifdef guard. Fixes #122.

This commit is contained in:
Syoyo Fujita
2017-02-02 14:11:13 +09:00
parent 00f51e3603
commit 156b709556

View File

@@ -334,6 +334,8 @@ void LoadMtl(std::map<std::string, int> *material_map,
} // namespace tinyobj
#endif // TINY_OBJ_LOADER_H_
#ifdef TINYOBJLOADER_IMPLEMENTATION
#include <cassert>
#include <cctype>
@@ -2016,5 +2018,3 @@ bool LoadObjWithCallback(std::istream &inStream, const callback_t &callback,
} // namespace tinyobj
#endif
#endif // TINY_OBJ_LOADER_H_