From 4b8d521247621a3efa6c2ad847ce0b3b23aa0eb2 Mon Sep 17 00:00:00 2001 From: mvandervoord Date: Fri, 14 Jan 2011 00:54:12 +0000 Subject: [PATCH] - version file is just going to have major and minor... leave build for the other file (which will hopefully be automatic someday). - only extern the output function when it's custom. git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@113 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e --- release/version.info | 2 +- src/unity_internals.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/release/version.info b/release/version.info index 6e1f4db..0d71c08 100644 --- a/release/version.info +++ b/release/version.info @@ -1,2 +1,2 @@ -2.0.0 +2.0 diff --git a/src/unity_internals.h b/src/unity_internals.h index 28d595d..d1db0da 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -117,10 +117,12 @@ typedef UNITY_FLOAT_TYPE _UF; //------------------------------------------------------- #ifndef UNITY_OUTPUT_CHAR +//Default to using putchar, which is defined in stdio.h above #define UNITY_OUTPUT_CHAR(a) putchar(a) -#endif - +#else +//If defined as something else, make sure we declare it here so it's ready for use extern int UNITY_OUTPUT_CHAR(int); +#endif //------------------------------------------------------- // Footprint