Skip to content

Commit

Permalink
A first try to overcome VC++17 register deprecation
Browse files Browse the repository at this point in the history
Try to allow C++17 compilers whilst keeping C99 full compatibility for embedded.
  • Loading branch information
mm2 committed Sep 25, 2023
1 parent c84094f commit 42309a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/lcms2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42309a0

Please sign in to comment.