put C linkage macros correctly around everything in libpluto.h
@@ -236,9 +236,6 @@ __isl_give isl_union_map *pluto_schedule(isl_union_set *domains,
PlutoOptions *options);
int pluto_schedule_osl(osl_scop_p scop, PlutoOptions *options_l);
-#if defined(__cplusplus)
-}
-#endif
/*
* Structure to hold Remapping information
@@ -277,4 +274,8 @@ Free the string stored in schedules_str_buffer_ptr
*/
void pluto_schedules_strbuf_free(char *schedules_str_buffer);
+#if defined(__cplusplus)
+}
+#endif
+
#endif
