Skip to content

Commit

Permalink
Merge pull request #437 from boostorg/436
Browse files Browse the repository at this point in the history
Add additional paths to guarantee BOOST_TEST_PRIxPTR is defined
  • Loading branch information
mborland authored Jan 22, 2025
2 parents 0cef47a + cc04b75 commit 78bb865
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion include/boost/test/impl/execution_monitor.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,18 @@ namespace { void _set_se_translator( void* ) {} }
# ifdef BOOST_TEST_DEFINED_STDC_FORMAT_MACROS
# undef __STDC_FORMAT_MACROS
# endif
#else
#endif
// If any modern toolchain did not pick up a definition from above it will here
#ifndef BOOST_TEST_PRIxPTR
# ifdef __has_include
# if __has_include(<cinttypes>)
# include <cinttypes>
# define BOOST_TEST_PRIxPTR PRIxPTR
# endif
# endif
#endif
// Last resort
#ifndef BOOST_TEST_PRIxPTR
# define BOOST_TEST_PRIxPTR "08lx"
#endif

Expand Down

0 comments on commit 78bb865

Please sign in to comment.