# HG changeset patch
# User Thinker K.F. Li <thinker@branda.to>
# Date 1258032370 -28800
# Node ID ae784a86ba82bbc25609bf5b9f1c4bf08a777e9a
# Parent  6e18550c8fa8695f2ab95193907c1edb5efee6cb
C++ instead of C to bridge to Skia

diff -r 6e18550c8fa8 -r ae784a86ba82 configure.ac
--- a/configure.ac	Thu Nov 12 21:24:35 2009 +0800
+++ b/configure.ac	Thu Nov 12 21:26:10 2009 +0800
@@ -9,6 +9,7 @@
 
 # Checks for programs.
 AC_PROG_CC
+AC_PROG_CXX
 LT_INIT
 AC_PROG_LIBTOOL
 
diff -r 6e18550c8fa8 -r ae784a86ba82 src/Makefile.am
--- a/src/Makefile.am	Thu Nov 12 21:24:35 2009 +0800
+++ b/src/Makefile.am	Thu Nov 12 21:26:10 2009 +0800
@@ -39,7 +39,7 @@
 endif
 
 if SKIA_GRAPH_ENGINE
-libmbfly_la_SOURCES += graph_engine_skia.c
+libmbfly_la_SOURCES += graph_engine_skia.cpp
 endif
 
 X_main_SOURCES = X_main.c
diff -r 6e18550c8fa8 -r ae784a86ba82 src/graph_engine_skia.c
--- a/src/graph_engine_skia.c	Thu Nov 12 21:24:35 2009 +0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-#include "mb_graph_engine_skia.h"
-#include "mb_shapes.h"
-
-#ifndef ASSERT
-#define ASSERT(x)
-#endif
diff -r 6e18550c8fa8 -r ae784a86ba82 src/graph_engine_skia.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/graph_engine_skia.cpp	Thu Nov 12 21:26:10 2009 +0800
@@ -0,0 +1,6 @@
+#include "mb_graph_engine_skia.h"
+#include "mb_shapes.h"
+
+#ifndef ASSERT
+#define ASSERT(x)
+#endif