Code

Removed sp_main_* stubs from individual headers to make the unit tests build on Windo...
authorjaspervdg <jaspervdg@users.sourceforge.net>
Mon, 8 Dec 2008 10:03:49 +0000 (10:03 +0000)
committerjaspervdg <jaspervdg@users.sourceforge.net>
Mon, 8 Dec 2008 10:03:49 +0000 (10:03 +0000)
src/svg/css-ostringstream-test.h
src/test-stubs.cpp [new file with mode: 0644]
src/xml/repr-action-test.cpp

index 5656baf5c5d8083b46f5f578db2f29ebb11321fd..295bf4bf3f6fe196fbdc759d437bf2702e60a122 100644 (file)
@@ -1,10 +1,6 @@
 #include <cxxtest/TestSuite.h>
 #include "svg/css-ostringstream.h"
 
-// dummy functions to prevent link errors
-int sp_main_gui(int /*argc*/, char const **/*argv*/) { return 0; }
-int sp_main_console(int /*argc*/, char const **/*argv*/) { return 0; }
-
 template<typename T>
 static void
 css_test_datum(T const x, std::string const &exp_str)
diff --git a/src/test-stubs.cpp b/src/test-stubs.cpp
new file mode 100644 (file)
index 0000000..efc5cf7
--- /dev/null
@@ -0,0 +1,4 @@
+
+// dummy functions to prevent link errors
+int sp_main_gui(int /*argc*/, char const **/*argv*/) { return 0; }
+int sp_main_console(int /*argc*/, char const **/*argv*/) { return 0; }
index d4f9d094d4f56a3709acdd9487f3bb7be07de92c..d36ff410689239a52fc3eb3a3d27ab13a4e6e4a1 100644 (file)
@@ -5,9 +5,6 @@
 #include "repr.h"
 #include "event-fns.h"
 
-int sp_main_gui (int, char const**) { return 0; }
-int sp_main_console (int, char const**) { return 0; }
-
 int main(int /*argc*/, char */*argv*/[]) {
        Inkscape::XML::Document *document;
        Inkscape::XML::Node *a, *b, *c, *root;