Skip to content

Commit 1018532

Browse files
authored
Merge pull request #438 from barracuda156/__STDC_FORMAT_MACROS
2 parents 78bb865 + d19ff0b commit 1018532

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/test/impl/execution_monitor.ipp

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ namespace { void _set_se_translator( void* ) {} }
195195
#endif
196196

197197
#if (!defined(BOOST_MSSTL_VERSION) || (BOOST_MSSTL_VERSION >= 120)) && (!defined(__GLIBC__) || ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2))))
198-
// glibc 2.2 - 2.17 required __STDC_FORMAT_MACROS to be defined for use of PRIxPTR
199-
# if defined(__GLIBC__) && !((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 18)))
198+
// glibc 2.2 - 2.17 required __STDC_FORMAT_MACROS to be defined for use of PRIxPTR, as well as some versions of macOS.
199+
# if (defined(__GLIBC__) && !((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 18)))) || defined(__APPLE__)
200200
# ifndef __STDC_FORMAT_MACROS
201201
# define __STDC_FORMAT_MACROS 1
202202
# define BOOST_TEST_DEFINED_STDC_FORMAT_MACROS

0 commit comments

Comments
 (0)