]> sourceware.org Git - newlib-cygwin.git/commitdiff
newlib/libc/include/devctl.h: Add extern "C" wrapper
authorJoel Sherrill <joel@rtems.org>
Wed, 19 Feb 2020 14:03:40 +0000 (08:03 -0600)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 20 Feb 2020 08:45:39 +0000 (09:45 +0100)
Adding this was necessary to allow posix_devctl() from C++.

newlib/libc/include/devctl.h

index fd3409f8918d5e69e1471f7f862c44c6536d83da..889693e1db0a936cfd2a9666e7cdef06a815fa70 100644 (file)
 
 #include <sys/cdefs.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #if defined(__rtems__)
 /*
  * The FACE Technical Standard, Edition 3.0 and later require the
@@ -67,4 +71,8 @@ int posix_devctl(
 );
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
This page took 0.033482 seconds and 5 git commands to generate.