Karthik Subramanian wrote:
Perhaps you could write a wrapper called gamma() that does something like this:===== struct utsname *ub; /* malloc, etc. */ if(uname(ub)) { die(); } if (strcmp(ub->sysname, "Linux") { tgamma(); } else { gamma(); }
That's wont work - you can't call the wrapper "gamma" as well. Either use configure, or hardcode it: #ifdef __GLIBC__ #define gamma(x) tgamma(x) #endif and then use gamma() normally. cheers simon -- <3 the future +++ RENT this banner advert +++ ASCII Ribbon /"\ rock the past +++ space for low CHF NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
