sdk: be C++ friendly
[platform/upstream/weston.git] / shared / config-parser.h
index 314057a..1d0ee3f 100644 (file)
 #ifndef CONFIGPARSER_H
 #define CONFIGPARSER_H
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 enum config_key_type {
        CONFIG_KEY_INTEGER,             /* typeof data = int */
        CONFIG_KEY_UNSIGNED_INTEGER,    /* typeof data = unsigned int */
@@ -69,5 +73,9 @@ int
 parse_options(const struct weston_option *options,
              int count, int *argc, char *argv[]);
 
+#ifdef  __cplusplus
+}
+#endif
+
 #endif /* CONFIGPARSER_H */