-
About errno
<< split from http://cboard.cprogramming.com/c-pro...bc-so-6-a.html >>
Hello Folks,
thanks you helped me a lot. But I've still got one question: Is there a possibility to test out if I must either import errno or should include the file.
Something like
Code:
#ifdef THIS_IS_THE_DEFINE_I_NEED
#include <errno.h>
#else
extern int errno;
#endif
Thanks a lot!
beachcoder
-
You should always just include errno.h, for the reasons matsp says in the other thread.
-
Hi Salem!
Thanks for your info. The problem is that I've had this problem on a very old software, which must be backward-compatible and must compile under Linux same as unter AIX, Solaris and NCR and such systems.
Are you sure it is available on Systems released within the past 10 or 15 years? ;)
Anyway, I now put the new version on and try to port. If the problem comes up, I will try to find another solution.
Thanks again,
beachcoder
-
errno.h has been a C-standard header file for the last 20 years.