From 81c29fa3717e4607607aeb6f1051c106c83fce92 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Tue, 8 Apr 2025 20:39:12 +0300 Subject: [PATCH] Make gb.h compatible with ANSI C++, fixes #698 --- Core/gb.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/gb.h b/Core/gb.h index c0380d8..3636930 100644 --- a/Core/gb.h +++ b/Core/gb.h @@ -1,6 +1,9 @@ #pragma once #ifdef __cplusplus +#if defined(__STRICT_ANSI__) && !defined(typeof) +#define typeof decltype +#endif extern "C" { #endif