Fix ifdef guard.

This commit is contained in:
Syoyo Fujita
2017-07-05 16:50:12 +09:00
parent 2409832b24
commit 6cde18eb55

View File

@@ -1046,8 +1046,14 @@ bool parseObj(attrib_t *attrib, std::vector<shape_t> *shapes,
std::vector<material_t> *materials, const char *buf, size_t len,
const LoadOption &option);
} // namespace tinyobj_opt
#endif // TINOBJ_LOADER_OPT_H_
#ifdef TINYOBJ_LOADER_OPT_IMPLEMENTATION
namespace tinyobj_opt {
static bool parseLine(Command *command, const char *p, size_t p_len,
bool triangulate = true) {
// @todo { operate directly on pointer `p'. to do that, add range check for
@@ -1672,8 +1678,7 @@ bool parseObj(attrib_t *attrib, std::vector<shape_t> *shapes,
return true;
}
#endif // TINYOBJ_LOADER_OPT_IMPLEMENTATION
} // namespace tinyobj_opt
#endif // TINOBJ_LOADER_OPT_H_
#endif // TINYOBJ_LOADER_OPT_IMPLEMENTATION