<metacollin>
wpwrak: undelete is a reserved function in POSIX systems and is in one of the standard headers that gets included, so it has to be changed to a different name for it to compile on a POSIX compatible system
<wpwrak>
metacollin: okay, that means that no #ifdef is really needed. now, the 2nd problem is that i can't find any indication that undelete is defined in posix, i.e., here: http://pubs.opengroup.org/onlinepubs/9699919799/
<wpwrak>
so it's either NOT in posix, meaning that the mac headers don't conform, but and there may be a way to make them conform (e.g., through a feature test macro), or it's anticipating some unpublished version of POSIX. alas, http://www.manpagez.com/man/2/undelete/ (if that's the right reference) doesn't sat how it relates to POSIX
<metacollin>
Also, my patch isn't meant to be a suggested code change per se, just to illustrate the issue
<metacollin>
I don't know how you use or planned to use undelete within fped, so its really just a matter up to you. If you're ok with simply renaming it, then there is no need for an #ifdef at all
<metacollin>
I just don't like changing people's function names willy-nilly :)
<Joerg-Neo900>
wpwrak: ^^^ :-)
<Joerg-Neo900>
wpwrak: and please mind the "release" tag
<metacollin>
Oh, and one other change: using flex on macos is done via -ll rather than -lm, but I believe that is specific to macOS. And I am probably the only person who wants/cares about macOS support heh
<wpwrak>
anyway, gotta run. the undelete problem may be fixable with feature test macros.
<Joerg-Neo900>
hmmm >>assignment-allocation character m, which shall cause a memory buffer to be allocated to hold the string<< indeed that's nontrivial