This makes xgethostname.h usable on C++.

2009-08-29  Robert Millan  <[email protected]>

        * lib/xgethostname.h [__cplusplus] (xgethostname): Enclose
        declaration within `extern "C"'.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
diff --git a/lib/xgethostname.h b/lib/xgethostname.h
index 0177a40..5c8c615 100644
--- a/lib/xgethostname.h
+++ b/lib/xgethostname.h
@@ -1 +1,9 @@
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 char *xgethostname (void);
+
+#ifdef __cplusplus
+}
+#endif

Reply via email to