On 2024-05-12 12:23, Collin Funk wrote:
I think the best decision is to use
'extern inline' to match the behavior of glibc.

Yes, with the usual _GL_EXTERN business.


Also if we can agree upon making sure these are defined as functions,
what is the proper way to test it in a configure script? My instinct
tells me that assigning a function pointer to bswap_16, etc. would
fail if they are macros

I don't see the need to check that they are functions. POSIX does not require endian.h symbols like be16toh to be defined as functions, and the glibc manual doesn't mention endian.h, so it sounds like Gnulib-using code shouldn't assume that these symbols are functions.

Reply via email to