diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-06-28 11:36:38 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-06-28 11:36:38 +0200 |
commit | 37a488bff1aa553bff9116f1bf56d5402a7732fa (patch) | |
tree | 62986ab57d933a6add3774b8d64838a0322e3421 /src/quark.h | |
parent | be5ec8c7d9945b268202483609ff43a66b59ef0d (diff) |
Add "extern C" declarations for C++
Diffstat (limited to 'src/quark.h')
-rw-r--r-- | src/quark.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/quark.h b/src/quark.h index 93cb938f..9488b105 100644 --- a/src/quark.h +++ b/src/quark.h @@ -3,8 +3,16 @@ #include "h-type.h" +#ifdef __cplusplus +extern "C" { +#endif + void quark_init(); cptr quark_str(s16b num); s16b quark_add(cptr str); +#ifdef __cplusplus +} // extern "C" +#endif + #endif |