output: Make building without libplot possible again.
[pspp-builds.git] / src / output / chart.h
index fea64edfca33ce428c0f534b1ca5aabfec9159ce..598c91eb9fb492c1f4d78b79c8e8e9c4b2940e84 100644 (file)
 #ifndef OUTPUT_CHART_H
 #define OUTPUT_CHART_H 1
 
+/* <plot.h> requires <stdio.h> but doesn't #include it. */
+#include <stdio.h>
+
 #ifdef HAVE_CHARTS
-#include <stdio.h>              /* Required by <plot.h>. */
 #include <plot.h>
+#else
+#include <output/charts/libplot-dummy.h>
 #endif
 
 struct chart;