blob: 4befe385535a1a71b4fc928f7cf35390eac2715e [file] [log] [blame]
Bill Wendlingbc922e52013-06-27 21:17:06 +00001/* ===-- errno.h - stub SDK header for compiler-rt --------------------------===
2 *
3 * The LLVM Compiler Infrastructure
4 *
5 * This file is dual licensed under the MIT and the University of Illinois Open
6 * Source Licenses. See LICENSE.TXT for details.
7 *
8 * ===-----------------------------------------------------------------------===
9 *
10 * This is a stub SDK header file. This file is not part of the interface of
11 * this library nor an official version of the appropriate SDK header. It is
12 * intended only to stub the features of this header required by compiler-rt.
13 *
14 * ===-----------------------------------------------------------------------===
15 */
16
17#ifndef _SYS_ERRNO_H_
18#define _SYS_ERRNO_H_
19
20#if defined(__cplusplus)
21extern "C" {
22#endif
23
24extern int *__error(void);
25#define errno (*__error())
26
27#if defined(__cplusplus)
28}
29#endif
30
31#endif