From 6cde18eb555696b909ae53ab3d7d4e29fe2dd397 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Wed, 5 Jul 2017 16:50:12 +0900 Subject: [PATCH] Fix ifdef guard. --- experimental/tinyobj_loader_opt.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/experimental/tinyobj_loader_opt.h b/experimental/tinyobj_loader_opt.h index bdb343c..ed44b47 100644 --- a/experimental/tinyobj_loader_opt.h +++ b/experimental/tinyobj_loader_opt.h @@ -1046,8 +1046,14 @@ bool parseObj(attrib_t *attrib, std::vector *shapes, std::vector *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 *shapes, return true; } -#endif // TINYOBJ_LOADER_OPT_IMPLEMENTATION } // namespace tinyobj_opt -#endif // TINOBJ_LOADER_OPT_H_ +#endif // TINYOBJ_LOADER_OPT_IMPLEMENTATION