1 /* Copyright (C) 2001-2006 Artifex Software, Inc.
2    All Rights Reserved.
3 
4    This software is provided AS-IS with no warranty, either express or
5    implied.
6 
7    This software is distributed under license and may not be copied, modified
8    or distributed except as expressly authorized under the terms of that
9    license.  Refer to licensing information at http://www.artifex.com/
10    or contact Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134,
11    San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12 */
13 /* $Id: errno_.h 8022 2007-06-05 22:23:38Z giles $ */
14 /* Generic substitute for Unix errno.h */
15 
16 #ifndef errno__INCLUDED
17 #  define errno__INCLUDED
18 
19 /* We must include std.h before any file that includes sys/types.h. */
20 #include "std.h"
21 
22 /* All environments provide errno.h, but in some of them, errno.h */
23 /* only defines the error numbers, and doesn't declare errno. */
24 #include <errno.h>
25 #ifndef errno			/* in case it was #defined (very implausible!) */
26 extern int errno;
27 
28 #endif
29 
30 #endif /* errno__INCLUDED */
31