Add extern C declaration to schedule.h
authorTobias Grosser <grosser@fim.uni-passau.de>
Mon, 25 Apr 2011 06:48:19 +0000 (08:48 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 25 Apr 2011 06:52:51 +0000 (08:52 +0200)
All headers except the recently added schedule.h header include an extern C
declaration. Add the same declaration to schedule.h to allow flawless inclusion
in C++ programs.

Signed-off-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
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