From 3b5f666aed07d7758120decb9464d6cc4939c313 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 9 Aug 2018 14:08:00 -0700 Subject: [PATCH] Emscripten fix --- project/include/hl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/project/include/hl.h b/project/include/hl.h index 9ed3b0415..c75a17730 100644 --- a/project/include/hl.h +++ b/project/include/hl.h @@ -241,10 +241,12 @@ typedef uint32_t char32_t; # include #elif __cplusplus <= 199711L # include -typedef int16_t char16_t; typedef uint16_t uchar16_t; -typedef int32_t char32_t; typedef uint32_t uchar32_t; +#ifndef EMSCRIPTEN +typedef int32_t char32_t; +typedef int16_t char16_t; +#endif #endif typedef char16_t uchar; # undef USTR