summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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