diff options
| author | Jasper van de Gronde <jasper.vandegronde@gmail.com> | 2008-12-08 10:03:49 +0000 |
|---|---|---|
| committer | jaspervdg <jaspervdg@users.sourceforge.net> | 2008-12-08 10:03:49 +0000 |
| commit | 501cc24348be080989835454dae65f6a8e2bc69a (patch) | |
| tree | 5d9f7b81721f0eec76838165641ad24cc44e4a5a | |
| parent | Warning and 'using' cleanup. (diff) | |
| download | inkscape-501cc24348be080989835454dae65f6a8e2bc69a.tar.gz inkscape-501cc24348be080989835454dae65f6a8e2bc69a.zip | |
Removed sp_main_* stubs from individual headers to make the unit tests build on Windows again.
(bzr r6971)
| -rw-r--r-- | src/svg/css-ostringstream-test.h | 4 | ||||
| -rw-r--r-- | src/test-stubs.cpp | 4 | ||||
| -rw-r--r-- | src/xml/repr-action-test.cpp | 3 |
3 files changed, 4 insertions, 7 deletions
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 <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 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; |
