summaryrefslogtreecommitdiffstats
path: root/lib/lz4.c
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2017-11-06 15:16:02 (GMT)
committerSylvestre Ledru <sylvestre@debian.org>2017-11-06 15:16:02 (GMT)
commit4fed595dac0a10fb68c77a71370638ad958ccce8 (patch)
tree8e741a7cac42fd235c47291b7d9dd00d5668e2f7 /lib/lz4.c
parentcca7618f09b0a98b05a27597f25fcdc68ab908ed (diff)
downloadlz4-4fed595dac0a10fb68c77a71370638ad958ccce8.zip
lz4-4fed595dac0a10fb68c77a71370638ad958ccce8.tar.gz
lz4-4fed595dac0a10fb68c77a71370638ad958ccce8.tar.bz2
Only ignore with C++17
Diffstat (limited to 'lib/lz4.c')
-rw-r--r--lib/lz4.c6
1 files 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