summaryrefslogtreecommitdiffstats
path: root/common/sw_canvas.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/sw_canvas.c')
-rw-r--r--common/sw_canvas.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/sw_canvas.c b/common/sw_canvas.c
index 95ec292f..e1b13e0b 100644
--- a/common/sw_canvas.c
+++ b/common/sw_canvas.c
@@ -16,6 +16,10 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef SPICE_CANVAS_INTERNAL
+#error "This file shouldn't be compiled directly"
+#endif
+
#include <math.h>
#include "sw_canvas.h"
#define CANVAS_USE_PIXMAN