rayzor
diff src/timer.h @ 10:235c8b764c0b
optimized swap_buffers
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 10 Apr 2014 08:03:52 +0300 |
parents | a826bf0fb169 |
children | 5380ff64e83f |
line diff
1.1 --- a/src/timer.h Thu Apr 10 02:31:31 2014 +0300 1.2 +++ b/src/timer.h Thu Apr 10 08:03:52 2014 +0300 1.3 @@ -18,6 +18,10 @@ 1.4 #ifndef TIMER_H_ 1.5 #define TIMER_H_ 1.6 1.7 +#ifdef __cplusplus 1.8 +extern "C" { 1.9 +#endif 1.10 + 1.11 /* expects the required timer resolution in hertz 1.12 * if res_hz is 0, the current resolution is retained 1.13 */ 1.14 @@ -26,4 +30,8 @@ 1.15 void reset_timer(void); 1.16 unsigned long get_msec(void); 1.17 1.18 +#ifdef __cplusplus 1.19 +} 1.20 +#endif 1.21 + 1.22 #endif /* TIMER_H_ */