Only ignore with C++17

This commit is contained in:
Sylvestre Ledru 2017-11-06 16:16:02 +01:00
parent cca7618f09
commit 4fed595dac

View File

@ -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