projects
/
platform
/
upstream
/
lz4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cca7618
)
Only ignore with C++17
author
Sylvestre Ledru
<sylvestre@debian.org>
Mon, 6 Nov 2017 15:16:02 +0000
(16:16 +0100)
committer
Sylvestre Ledru
<sylvestre@debian.org>
Mon, 6 Nov 2017 15:16:02 +0000
(16:16 +0100)
lib/lz4.c
patch
|
blob
|
history
diff --git
a/lib/lz4.c
b/lib/lz4.c
index
71acfce
..
64a2e82
100644
(file)
--- 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
*/
-#if
def __cplusplus
+#if
defined(__cplusplus) && __cplusplus > 201402L
# define REGISTER
#else
# define REGISTER register