diff options
author | Chris Robinson <[email protected]> | 2014-05-29 04:22:30 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-05-29 04:22:30 -0700 |
commit | 1d45c439b83565699a1fc220dc7f34c9ceb11a7e (patch) | |
tree | 2a1e92e023d270a30da1dc1b06b3bdb205fe6462 /include/rwlock.h | |
parent | 73614f228eda86e9dc074540989a11a4fd7fb9e9 (diff) |
Add extern "C" to common headers.
Diffstat (limited to 'include/rwlock.h')
-rw-r--r-- | include/rwlock.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/rwlock.h b/include/rwlock.h index c3a275e6..03482515 100644 --- a/include/rwlock.h +++ b/include/rwlock.h @@ -4,6 +4,10 @@ #include "bool.h" #include "atomic.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { RefCount read_count; RefCount write_count; @@ -19,4 +23,8 @@ void ReadUnlock(RWLock *lock); void WriteLock(RWLock *lock); void WriteUnlock(RWLock *lock); +#ifdef __cplusplus +} +#endif + #endif /* AL_RWLOCK_H */ |