aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMarco Paland <marco@paland.com>2017-11-13 09:29:14 +0100
committerMarco Paland <marco@paland.com>2017-11-13 09:29:14 +0100
commit7936fc34c4e2f734981832c1201777cb429d4a0a (patch)
tree4014fe08ad61119b5764286ec343bea9467105b1 /test
parent65b9a297d3433fc8b2d6ca65c430b835b25923d0 (diff)
downloadprintf-7936fc34c4e2f734981832c1201777cb429d4a0a.tar.gz
printf-7936fc34c4e2f734981832c1201777cb429d4a0a.tar.bz2
printf-7936fc34c4e2f734981832c1201777cb429d4a0a.zip
Changed printf.cpp to printf.c to be usable with 'C'-compilers
closes #1
Diffstat (limited to 'test')
-rw-r--r--test/test_suite.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/test_suite.cpp b/test/test_suite.cpp
index a291cc7..9e186aa 100644
--- a/test/test_suite.cpp
+++ b/test/test_suite.cpp
@@ -35,15 +35,13 @@
namespace test {
// use functions in own test namespace to avoid stdio conflicts
#include "../printf.h"
- #include "../printf.cpp"
+ #include "../printf.c"
} // namespace test
// dummy putchar
-int test::_putchar(char)
-{
- return 0;
-}
+void test::_putchar(char)
+{ }