From 4fed595dac0a10fb68c77a71370638ad958ccce8 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 6 Nov 2017 16:16:02 +0100 Subject: [PATCH] Only ignore with C++17 --- lib/lz4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/lz4.c b/lib/lz4.c index 71acfce..64a2e82 100644 --- a/lib/lz4.c +++ b/lib/lz4.c @@ -86,10 +86,10 @@ /* - * register is ignored when the code built with a C++ compiler - * Remove the keyword when built with C++ to silent the warning + * register is ignored when the code built with a C++-17 compiler + * Remove the keyword when built with C++-17 to silent the warning */ -#ifdef __cplusplus +#if defined(__cplusplus) && __cplusplus > 201402L # define REGISTER #else # define REGISTER register