From 0aab63eb2046b1be0ea549d8959eef5c1a11e464 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Sat, 23 May 2015 22:15:23 +0200 Subject: [PATCH] Fixing ptrdiff_t compile error --- tiny_obj_loader.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiny_obj_loader.cc b/tiny_obj_loader.cc index d9723e3..ca5222a 100644 --- a/tiny_obj_loader.cc +++ b/tiny_obj_loader.cc @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -589,7 +590,7 @@ std::string LoadMtl(std::map &material_map, _space = strchr(token, '\t'); } if (_space) { - ptrdiff_t len = _space - token; + std::ptrdiff_t len = _space - token; std::string key(token, len); std::string value = _space + 1; material.unknown_parameter.insert(