You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be useful to centralize platform detection in a separate file (ctypes.config.h or similar) and break up the conditional compilation into two steps:
ctypes_config.h should define macros that represent whether features are available
#ifndef__ANDROID__#defineHAVE_CEXP
...
the rest of the code should branch on feature availability rather than platform
#ifdefHAVE_CEXP
...
In the longer term we might generate ctypes_config.h via a script run at configuration time.
The text was updated successfully, but these errors were encountered:
A few parts of the code are preprocessor-conditionalized by platform, e.g. posix_types_stubs.c:
and ldouble_stubs.c:
It'd be useful to centralize platform detection in a separate file (
ctypes.config.h
or similar) and break up the conditional compilation into two steps:ctypes_config.h
should define macros that represent whether features are availablethe rest of the code should branch on feature availability rather than platform
In the longer term we might generate
ctypes_config.h
via a script run at configuration time.The text was updated successfully, but these errors were encountered: