diff --git a/include/lcms2.h b/include/lcms2.h index bdf34da4..3aa9bb31 100644 --- a/include/lcms2.h +++ b/include/lcms2.h @@ -76,6 +76,9 @@ #ifndef CMS_USE_CPP_API # ifdef __cplusplus +# if __cplusplus >= 201703L +# define CMS_NO_REGISTER_KEYWORD 1 +# endif extern "C" { # endif #endif