Re: Help with differing build environments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 06 Oct 2004 19:49, Geoffrey Huang wrote:
> Hi Chris,
>
> Thanks for the response.  Yeah - I'd read about this in the manuals.  I
> don't really like the prospect of having #if statements throughout the
> code, especially since the use of the functions in question is quite
> widespread.

Write wrapper functions then, one for each function call you must deal with.  
Wherever you would call one of the functions, call your wrapper function 
instead which which contain the necessary #ifdefs to make your code function 
correctly no matter what libraries are installed.  Then the #ifdefs are all 
in one place.

Rich.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux