Added extern C {} wrapper consistent with other headers in include/sys
@@ -72,10 +72,28 @@ struct utsname
char machine[SYS_NAMELEN]; /* Machine hardware */
};
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+#undef EXTERN
+#if defined(__cplusplus)
+#define EXTERN extern "C"
+extern "C"
+{
+#else
+#define EXTERN extern
+#endif
+
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
int uname(FAR struct utsname *name);
+#undef EXTERN
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* __INCLUDE_SYS_UTSNAME_H */
