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

Ivan Maidanski ivmai at mail.ru
Thu Sep 15 08:06:20 PDT 2011


Hi Jurriën,

Is MAC_OS_X_VERSION_MAX_ALLOWED defined in any of header files we include?
I see it is defined in Avaliability.h but this one is not included indirectly by gc_priv.h.

Regards.

13 09 2011, 18:28 Jurriën Stutterheim <reply+i-1630875-6ee0c7d42195d52bc113cc90a1c3f84ed9682072 at reply.github.com>:
> 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