From: jaspervdg Date: Mon, 8 Dec 2008 10:03:49 +0000 (+0000) Subject: Removed sp_main_* stubs from individual headers to make the unit tests build on Windo... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=36f639fc5cf101197bfb7459d7b369f24c35d79c;p=inkscape.git Removed sp_main_* stubs from individual headers to make the unit tests build on Windows again. --- diff --git a/src/svg/css-ostringstream-test.h b/src/svg/css-ostringstream-test.h index 5656baf5c..295bf4bf3 100644 --- a/src/svg/css-ostringstream-test.h +++ b/src/svg/css-ostringstream-test.h @@ -1,10 +1,6 @@ #include #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 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 index 000000000..efc5cf7d8 --- /dev/null +++ b/src/test-stubs.cpp @@ -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; } diff --git a/src/xml/repr-action-test.cpp b/src/xml/repr-action-test.cpp index d4f9d094d..d36ff4106 100644 --- a/src/xml/repr-action-test.cpp +++ b/src/xml/repr-action-test.cpp @@ -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;