aboutsummaryrefslogtreecommitdiff
path: root/include/bh/platform.h
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2024-06-08 12:26:20 +0300
committerMikhail Romanko <me@blankhex.com>2024-06-08 12:26:31 +0300
commit54c33ec67a3a10ae57fdb691a08047b322217de0 (patch)
tree682e49b468523ad135c47bcbcc633b7290b37dce /include/bh/platform.h
parentfd39ee8692f88580b4f9f130ad0a831fb9163024 (diff)
downloadbhlib-old-54c33ec67a3a10ae57fdb691a08047b322217de0.tar.gz
Fix warnings related to undefined defines and implicit casts
Diffstat (limited to 'include/bh/platform.h')
-rw-r--r--include/bh/platform.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bh/platform.h b/include/bh/platform.h
index 59d9051..f80efda 100644
--- a/include/bh/platform.h
+++ b/include/bh/platform.h
@@ -12,7 +12,7 @@ typedef float bh_float32_t;
typedef double bh_float64_t;
/* Platform specific type definition */
-#if __STDC_VERSION__ >= 199901L || defined(__GNUC__)
+#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__)
#include <stdint.h>
typedef int32_t bh_int32_t;