Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 51 lines (37 sloc) 0.886 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
#ifndef RBX_DETECTION
#define RBX_DETECTION

/*
* This file, when included, defines a bunch of macros that have detected
* values about the current machine.
*
* Towards the bottom, we also use those macros to setup some configuration
* variables.
*
*/


/** DETECT */

#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
#define OS_X_10_5
#define _XOPEN_SOURCE
#define HAS_UCONTEXT
#elif defined(__APPLE__) && defined(__APPLE_CC__)
#define OS_X_ANCIENT
#endif

#if defined(__linux__)
#define HAS_UCONTEXT
#endif

#if defined(__FreeBSD__)
#define HAS_UCONTEXT
#endif

#if defined(i386) || defined(__i386) || defined(__i386__)
#define IS_X86
#endif

#if defined(_LP64) || defined(__LP64__) || defined(__x86_64__) || defined(__amd64__)
#define IS_X8664

#elif defined(IS_X86)
#define IS_X8632

#endif

/** CONFIGURE */

#ifdef HAS_EXECINFO
#define USE_EXECINFO
#endif

#endif
Something went wrong with that request. Please try again.