[compiler-rt] r185104 - Add 'errno.h' to the Darwin SDK.

Bill Wendling isanbard at gmail.com
Thu Jun 27 14:17:06 PDT 2013


Author: void
Date: Thu Jun 27 16:17:06 2013
New Revision: 185104

URL: http://llvm.org/viewvc/llvm-project?rev=185104&view=rev
Log:
Add 'errno.h' to the Darwin SDK.

Added:
    compiler-rt/trunk/SDKs/darwin/usr/include/errno.h
    compiler-rt/trunk/SDKs/darwin/usr/include/sys/errno.h

Added: compiler-rt/trunk/SDKs/darwin/usr/include/errno.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/errno.h?rev=185104&view=auto
==============================================================================
--- compiler-rt/trunk/SDKs/darwin/usr/include/errno.h (added)
+++ compiler-rt/trunk/SDKs/darwin/usr/include/errno.h Thu Jun 27 16:17:06 2013
@@ -0,0 +1,17 @@
+/* ===-- errno.h - stub SDK header for compiler-rt --------------------------===
+ *
+ *                     The LLVM Compiler Infrastructure
+ *
+ * This file is dual licensed under the MIT and the University of Illinois Open
+ * Source Licenses. See LICENSE.TXT for details.
+ *
+ * ===-----------------------------------------------------------------------===
+ *
+ * This is a stub SDK header file. This file is not part of the interface of
+ * this library nor an official version of the appropriate SDK header. It is
+ * intended only to stub the features of this header required by compiler-rt.
+ *
+ * ===-----------------------------------------------------------------------===
+ */
+
+#include <sys/errno.h>

Added: compiler-rt/trunk/SDKs/darwin/usr/include/sys/errno.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/sys/errno.h?rev=185104&view=auto
==============================================================================
--- compiler-rt/trunk/SDKs/darwin/usr/include/sys/errno.h (added)
+++ compiler-rt/trunk/SDKs/darwin/usr/include/sys/errno.h Thu Jun 27 16:17:06 2013
@@ -0,0 +1,31 @@
+/* ===-- errno.h - stub SDK header for compiler-rt --------------------------===
+ *
+ *                     The LLVM Compiler Infrastructure
+ *
+ * This file is dual licensed under the MIT and the University of Illinois Open
+ * Source Licenses. See LICENSE.TXT for details.
+ *
+ * ===-----------------------------------------------------------------------===
+ *
+ * This is a stub SDK header file. This file is not part of the interface of
+ * this library nor an official version of the appropriate SDK header. It is
+ * intended only to stub the features of this header required by compiler-rt.
+ *
+ * ===-----------------------------------------------------------------------===
+ */
+
+#ifndef _SYS_ERRNO_H_
+#define _SYS_ERRNO_H_
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+extern int *__error(void);
+#define errno (*__error())
+
+#if defined(__cplusplus)
+}
+#endif
+
+#endif





More information about the llvm-commits mailing list