Frustrated trying to be portable

Doug Gwyn gwyn at smoke.brl.mil
Wed Feb 27 07:19:45 AEST 1991


In article <4108 at lupine.NCD.COM> rfg at NCD.COM (Ron Guilmette) writes:
>Why wasn't this done?

It wasn't necessary.

>Now that this mistake has been made, is there any "common practice" or
>defacto standard method by which a program can check to see if it is being
>compiled by/within a "hosted" implementation or a "standalone" implementation?

It isn't necessary.  If the application requires library functions
that are required for a hosted implementation but not for a
freestanding implementation, then it couldn't survive being told
that it is being compiled by a freestanding implementation anyway.



More information about the Comp.std.c mailing list