# HG changeset patch # User cslag # Date 1486555019 -3600 # Node ID a8052efbde18af506196b1a5030e5aa65ace0e90 # Parent 8402121e1737922cd1ce5daae67fa0518a632414 - loosened OS detection macros a bit to not bail out and thus make it easier to use dyncall on baremetal diff -r 8402121e1737 -r a8052efbde18 dyncall/dyncall_macros.h --- a/dyncall/dyncall_macros.h Wed Feb 08 12:54:05 2017 +0100 +++ b/dyncall/dyncall_macros.h Wed Feb 08 12:56:59 2017 +0100 @@ -123,7 +123,9 @@ #define DC__OS_Minix #else - #error Unsupported OS. + +/* Unable to determine OS, which is probably ok (e.g. baremetal stuff, etc.). */ +#define DC__OS_UNKNOWN #endif @@ -192,8 +194,8 @@ #elif defined(__sh__) # define DC__Arch_SuperH #elif defined(__sparcv9) || defined(__sparc64__) || ( defined(__sparc) && defined(__arch64__) ) -/* this could be needed on Linux/GNU sparc64 in the future: || ( defined(__sparc) && defined(__arch64__) ) */ -# define DC__Arch_Sparcv9 +# define DC__Arch_Sparcv9 /* @@@ need this define, or use just sparc64 more generically? */ +# define DC__Arch_Sparc64 #elif defined(__sparc) # define DC__Arch_Sparc #endif @@ -268,7 +270,7 @@ DC__Arch_Itanium DC__Arch_PPC32 DC__Arch_PPC64 -DC__Arch_Sparcv9 +DC__Arch_Sparcv9 / DC__Arch_Sparc64 DC__Arch_SuperH */ # if (defined(DC__Arch_PPC64) && (DC__ABI_PPC64_ELF_V == 1)) || defined(_BIG_ENDIAN) || defined(MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__)