Skip to content

Commit

Permalink
Add extern "C" guard for c++
Browse files Browse the repository at this point in the history
  • Loading branch information
siu committed Jun 26, 2012
1 parent 7ba6f83 commit 575dc36
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions minunit.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <time.h>

Expand Down Expand Up @@ -106,3 +110,7 @@ static double mu_timer_diff(timespec_t *start, timespec_t *end)
return (double)diff.tv_sec + (double)diff.tv_nsec/MINUNIT_NSECS;
}

#ifdef __cplusplus
}
#endif

0 comments on commit 575dc36

Please sign in to comment.