[Gc] Fwd: Re: [bdwgc] Compilation fails on Mac OS X (#4)

Ivan Maidanski ivmai at mail.ru
Wed Sep 14 02:34:32 PDT 2011


Hi Hans,

Forwarding to you...

From: Jurriën Stutterheim <reply+i-1630875-6ee0c7d42195d52bc113cc90a1c3f84ed9682072 at reply.github.com>
To: Ivan Maidanski <ivmai at mail.ru>
Date: 13 09 2011, 18:28
Subject: Re: [bdwgc] Compilation fails on Mac OS X (#4)

I'm not really a C programmer, but I've seen a similar solution like this various times (borrowed from MacVim here):

#ifndef MAC_OS_X_VERSION_10_4
# define MAC_OS_X_VERSION_10_4 1040
#endif
#ifndef MAC_OS_X_VERSION_10_5
# define MAC_OS_X_VERSION_10_5 1050
#endif
#ifndef MAC_OS_X_VERSION_10_6
# define MAC_OS_X_VERSION_10_6 1060
#endif
#ifndef MAC_OS_X_VERSION_10_7
# define MAC_OS_X_VERSION_10_7 1070
#endif

#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)
# include <sys/ucontext.h>
#else
# include <ucontext.h>
#endif

--
Reply to this email directly or view it on GitHub:
https://github.com/ivmai/bdwgc/issues/4#issuecomment-2082262

----------------



More information about the Gc mailing list