Skip to content

Commit

Permalink
Revert changes to SCN_COMPILER macro in pp_detect.h
Browse files Browse the repository at this point in the history
The usage of the integer thousands separator ' in preprocessor integrals results in build errors with Clang.
(tested with clang versions 17,18 and 19).
  • Loading branch information
Delta-dev-99 authored and eliaskosunen committed May 15, 2024
1 parent e149892 commit 7da4041
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/scn/detail/pp_detect.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@
#include <ciso646>
#endif

#define SCN_COMPILER(major, minor, patch) \
((major)*10'000'000 + (minor)*10'000 + (patch))
#define SCN_COMPILER(major, minor, patch) \
((major) * 10000000 /* 10,000,000 */ + (minor) * 10000 /* 10,000 */ + \
(patch))

#ifdef __INTEL_COMPILER
// Intel
Expand Down

0 comments on commit 7da4041

Please sign in to comment.