From: Sylvestre Ledru Date: Mon, 6 Nov 2017 15:16:02 +0000 (+0100) Subject: Only ignore with C++17 X-Git-Tag: upstream/1.9.3~11^2~28^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fed595dac0a10fb68c77a71370638ad958ccce8;p=platform%2Fupstream%2Flz4.git Only ignore with C++17 --- 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