Commit 8878541d authored by Darin Morrison's avatar Darin Morrison Committed by Austin Seipp

Fix building RtsProbes.d on Mac OS X 10.9 (#8139)

Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
parent feb76385
......@@ -21,7 +21,7 @@ extern "C" {
#include "stg/Types.h"
/* get limits for integral types */
#ifdef HAVE_STDINT_H
#if defined HAVE_STDINT_H && !defined USE_INTTYPES_H_FOR_RTS_PROBES_D
/* ISO C 99 says:
* "C++ implementations should define these macros only when
* __STDC_LIMIT_MACROS is defined before <stdint.h> is included."
......
......@@ -6,6 +6,12 @@
*
* ---------------------------------------------------------------------------*/
#ifdef __APPLE__ && __MACH__
# if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9
# define USE_INTTYPES_H_FOR_RTS_PROBES_D
# endif
#endif
#include "HsFFI.h"
#include "rts/EventLogFormat.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment