errno_.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* Copyright (C) 1993, 1998 Aladdin Enterprises. All rights reserved.
  2. This file is part of AFPL Ghostscript.
  3. AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
  4. distributor accepts any responsibility for the consequences of using it, or
  5. for whether it serves any particular purpose or works at all, unless he or
  6. she says so in writing. Refer to the Aladdin Free Public License (the
  7. "License") for full details.
  8. Every copy of AFPL Ghostscript must include a copy of the License, normally
  9. in a plain ASCII text file named PUBLIC. The License grants you the right
  10. to copy, modify and redistribute AFPL Ghostscript, but only under certain
  11. conditions described in the License. Among other things, the License
  12. requires that the copyright notice and this notice be preserved on all
  13. copies.
  14. */
  15. /*$Id: errno_.h,v 1.2 2000/09/19 19:00:10 lpd Exp $ */
  16. /* Generic substitute for Unix errno.h */
  17. #ifndef errno__INCLUDED
  18. # define errno__INCLUDED
  19. /* We must include std.h before any file that includes sys/types.h. */
  20. #include "std.h"
  21. /* All environments provide errno.h, but in some of them, errno.h */
  22. /* only defines the error numbers, and doesn't declare errno. */
  23. #include <errno.h>
  24. #ifndef errno /* in case it was #defined (very implausible!) */
  25. extern int errno;
  26. #endif
  27. #endif /* errno__INCLUDED */