chiark / gitweb /
api: add C++ guards
[elogind.git] / src / systemd / sd-utf8.h
index 039c36e3252f9cb7b3fdb321552182afb693065b..54ef5fbd89864af0fc907c3ea66a5e63f2258a09 100644 (file)
@@ -1,7 +1,7 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef fooutf8hfoo
-#define fooutf8hfoo
+#ifndef foosdutf8hfoo
+#define foosdutf8hfoo
 
 /***
   This file is part of systemd.
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 const char *sd_utf8_is_valid(const char *s);
 const char *sd_ascii_is_valid(const char *s);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif