diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-01-07 21:17:18 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-01-07 21:17:18 +0000 |
commit | 88de69e80f77a8ad79a1a03534b346f1a8d48ed6 (patch) | |
tree | 3885cfdb9cb7d47c8c902082334ccd599800e764 /libasyncns/asyncns.h | |
parent | 6e7b4e60d5cbbc34b99b6a4cb3e22d061e1843a7 (diff) |
* Solaris 2.8 compat
* C++ compat
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@11 cc0fb855-19ed-0310-866e-8c1d96e4abae
Diffstat (limited to 'libasyncns/asyncns.h')
-rw-r--r-- | libasyncns/asyncns.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libasyncns/asyncns.h b/libasyncns/asyncns.h index 6efcccc..ac5f789 100644 --- a/libasyncns/asyncns.h +++ b/libasyncns/asyncns.h @@ -44,6 +44,10 @@ /** \example asyncns-test.c * An example program */ +#ifdef __cplusplus +extern "C" { +#endif + /** An opaque libasyncns session structure */ typedef struct asyncns asyncns_t; @@ -124,4 +128,8 @@ void asyncns_setuserdata(asyncns_t *asyncns, asyncns_query_t *q, void *userdata) * prior to this call it returns NULL. */ void* asyncns_getuserdata(asyncns_t *asyncns, asyncns_query_t *q); +#ifdef __cplusplus +} +#endif + #endif |