From 1d45c439b83565699a1fc220dc7f34c9ceb11a7e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 29 May 2014 04:22:30 -0700 Subject: Add extern "C" to common headers. --- include/threads.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/threads.h') diff --git a/include/threads.h b/include/threads.h index 4a974b53..cde4b91f 100644 --- a/include/threads.h +++ b/include/threads.h @@ -3,6 +3,9 @@ #include +#ifdef __cplusplus +extern "C" { +#endif enum { althrd_success = 0, @@ -227,4 +230,8 @@ int altimespec_get(struct timespec *ts, int base); void al_nssleep(time_t sec, long nsec); +#ifdef __cplusplus +} +#endif + #endif /* AL_THREADS_H */ -- cgit v1.2.3