Reuben Thomas wrote: > Could macros be similarly added for the other relocatable.h > APIs, namely set_relocation_prefix and compute_curr_prefix? This would > allow relocate-using code to be entirely #ifdef free.
How does or would the code you are talking about look like, with #ifs? And would it be code for a library, or for a program? I'm asking because no package I know of is using set_relocation_prefix explicitly [1], nor is it documented by Gnulib [2]. Bruno [1] https://codesearch.debian.net/search?q=+set_relocation_prefix+-path%3Arelocatable.c+-path%3Arelocatable.h+-path%3Aconfigure&literal=1&page=1 [2] https://www.gnu.org/software/gnulib/manual/html_node/Supporting-Relocation.html