isl_arg.h: allow inclusion from C++
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 9 Apr 2010 09:04:17 +0000 (11:04 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 9 Apr 2010 11:12:34 +0000 (13:12 +0200)
include/isl_arg.h

index 2a84d3e..a936f37 100644 (file)
 
 #include <stddef.h>
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 struct isl_arg_choice {
        const char      *name;
        unsigned         value;
@@ -87,4 +91,8 @@ int prefix ## _parse(st *opt, int argc, char **argv)                  \
        return isl_arg_parse(arg, argc, argv, opt);                     \
 }
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif