Skip to content

Commit

Permalink
Add a "static" before
Browse files Browse the repository at this point in the history
double mu_timer_real( )
and
double mu_timer_cpu( )
to make sure the minunit.h can work in multiple *.c files in a project.

Signed-off-by: boddmg <[email protected]>
  • Loading branch information
boddmg committed Sep 26, 2014
1 parent 071402a commit cd4145b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minunit.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ static void (*minunit_teardown)(void) = NULL;
* The returned real time is only useful for computing an elapsed time
* between two calls to this function.
*/
double mu_timer_real( )
static double mu_timer_real( )
{
#if defined(_WIN32)
FILETIME tm;
Expand Down Expand Up @@ -272,7 +272,7 @@ double mu_timer_real( )
* Returns the amount of CPU time used by the current process,
* in seconds, or -1.0 if an error occurred.
*/
double mu_timer_cpu( )
static double mu_timer_cpu( )
{
#if defined(_WIN32)
/* Windows -------------------------------------------------- */
Expand Down

0 comments on commit cd4145b

Please sign in to comment.