Enable format macros in glTFViewer

Without this compilation can fail in picojson.h because the PRId64 macro
isn't defined (it is used to print 64bit ints).
This commit is contained in:
Corentin Wallez 2017-05-30 17:59:09 -04:00 committed by Corentin Wallez
parent 7815d78044
commit a0ad53b618
1 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,12 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Enable this before including any headers as we want inttypes.h to define
// format macros such as PRId64 that are used in picojson.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "Utils.h" #include "Utils.h"
#include <bitset> #include <bitset>