Add extern C declaration to schedule.h
[platform/upstream/isl.git] / include / isl / schedule.h
index fae51d7..07e0965 100644 (file)
@@ -4,6 +4,10 @@
 #include <isl/union_set.h>
 #include <isl/union_map.h>
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 struct isl_schedule;
 typedef struct isl_schedule isl_schedule;
 
@@ -18,4 +22,8 @@ int isl_schedule_n_band(__isl_keep isl_schedule *sched);
 __isl_give isl_union_map *isl_schedule_get_band(__isl_keep isl_schedule *sched,
        unsigned band);
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif