From 90623492b74d3bdcd9155b575d1a099350336541 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Mon, 8 Jul 2024 15:00:41 -0300 Subject: [PATCH] be more C89-friendly --- mongoose.h | 4 ++-- src/tls_chacha20.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mongoose.h b/mongoose.h index 359e5261..6f2f5b36 100644 --- a/mongoose.h +++ b/mongoose.h @@ -1965,11 +1965,11 @@ extern "C" { if possible, carefully pick your associated data. */ -// Make sure we are either nested in C++ or running in a C99+ compiler +/* Make sure we are either nested in C++ or running in a C99+ compiler #if !defined(__cplusplus) && !defined(_MSC_VER) && \ (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) #error "C99 or newer required" -#endif +#endif */ // #if CHAR_BIT > 8 // # error "Systems without native octals not suppoted" diff --git a/src/tls_chacha20.h b/src/tls_chacha20.h index 4071a199..f77e08f3 100644 --- a/src/tls_chacha20.h +++ b/src/tls_chacha20.h @@ -26,11 +26,11 @@ extern "C" { if possible, carefully pick your associated data. */ -// Make sure we are either nested in C++ or running in a C99+ compiler +/* Make sure we are either nested in C++ or running in a C99+ compiler #if !defined(__cplusplus) && !defined(_MSC_VER) && \ (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) #error "C99 or newer required" -#endif +#endif */ // #if CHAR_BIT > 8 // # error "Systems without native octals not suppoted"