diff options
| author | Andre Weissflog <floooh@gmail.com> | 2018-07-23 15:35:35 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2018-07-23 15:35:35 +0200 |
| commit | f1efc6de17dd0147717f159bfe7f7d30397728b4 (patch) | |
| tree | 5e333b69defc7dfa4f029c8bedb22620475e3d45 /sokol_time.h | |
| parent | 1f028a7ad76e3c1957ce5cadfa4e599e5128b085 (diff) | |
extern C only around the declaration, not the implementation
Diffstat (limited to 'sokol_time.h')
| -rw-r--r-- | sokol_time.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sokol_time.h b/sokol_time.h index ee207a27..ef1b0692 100644 --- a/sokol_time.h +++ b/sokol_time.h @@ -93,6 +93,10 @@ extern double stm_ms(uint64_t ticks); extern double stm_us(uint64_t ticks); extern double stm_ns(uint64_t ticks); +#ifdef __cplusplus +} /* extern "C" */ +#endif + /*-- IMPLEMENTATION ----------------------------------------------------------*/ #ifdef SOKOL_IMPL #ifndef SOKOL_ASSERT @@ -205,6 +209,3 @@ double stm_ns(uint64_t ticks) { } #endif /* SOKOL_IMPL */ -#ifdef __cplusplus -} /* extern "C" */ -#endif |