Mercurial > pub > dyncall > dyncall
diff dyncall/dyncall_macros.h @ 645:6a8aac9b2bcf
- removal of `autovar` macro detection lib:
* was a good idea, but never fully pushed through, so code was duplicating most of dyncall_macros.h
* didn't find any outside use and plans to make it a standalone lib never materialized
* so basically removing code to avoid code duplication that risks to never stay in sync
author | Tassilo Philipp |
---|---|
date | Mon, 05 Feb 2024 16:43:59 +0100 |
parents | 5d999f5c13d1 |
children | 0c8838766866 |
line wrap: on
line diff
--- a/dyncall/dyncall_macros.h Thu Dec 15 10:27:40 2022 +0100 +++ b/dyncall/dyncall_macros.h Mon Feb 05 16:43:59 2024 +0100 @@ -231,6 +231,23 @@ #endif +/* -- Executable/object file formats. ------------------------------- */ + +#if defined(DC__OS_Win32) || defined(DC__OS_Win64) || defined(DC__OS_Cygwin) || defined(DC__OS_MinGW) +# define DC__Obj_PE +#elif defined(DC__OS_Darwin) +# define DC__Obj_Mach +#elif !defined(DC__OS_Minix) || defined(__ELF__) /* Minix >= 3.2 (2012) uses ELF */ +# define DC__Obj_ELF +# if defined(__LP64__) || defined(_LP64) +# define DC__Obj_ELF64 +# else +# define DC__Obj_ELF32 +# endif +#else +# define DC__Obj_Unknown +#endif + /* -- Misc machine-dependent modes, ABIs, etc. ---------------------- */ @@ -279,7 +296,6 @@ #endif /* PPC64 */ - /* -- Endianness detection ------------------------------------------ */ #if defined(DC__Arch_Intel_x86) || defined(DC__Arch_AMD64) /* always little */