diff --git a/spec/getdns-0.377.tgz b/spec/getdns-0.377.tgz deleted file mode 100644 index 74286d09..00000000 Binary files a/spec/getdns-0.377.tgz and /dev/null differ diff --git a/spec/getdns-0.378.tgz b/spec/getdns-0.378.tgz new file mode 100644 index 00000000..3c7463de Binary files /dev/null and b/spec/getdns-0.378.tgz differ diff --git a/spec/getdns_core_only.h b/spec/getdns_core_only.h index d92feeaf..0ade8873 100644 --- a/spec/getdns_core_only.h +++ b/spec/getdns_core_only.h @@ -1,10 +1,14 @@ -/* Created at 2014-01-22-09-54-56*/ +/* Created at 2014-01-22-10-02-56*/ #ifndef GETDNS_H #define GETDNS_H #include #include +#ifdef __cplusplus +extern "C" { +#endif + #define GETDNS_COMPILATION_COMMENT The API implementation should fill in something here, such as a compilation version string and date, and change it each time the API is compiled. /* Return values */ @@ -594,4 +598,7 @@ getdns_context_set_extended_memory_functions( void (*free)(void *userarg, void *ptr) ); +#ifdef __cplusplus +} +#endif #endif /* GETDNS_H */ diff --git a/spec/index.html b/spec/index.html index 222dd71b..e4d500d4 100644 --- a/spec/index.html +++ b/spec/index.html @@ -2210,7 +2210,7 @@ The response dicts inherit the custom memory management functions and the value

9. The Generated Files

-

There is a tarball that includes the .h files, +

There is a tarball that includes the .h files, the examples, and so on. The examples all make, even though there is no API implementation, based on a pseudo-implementation in the tarball; see make-examples-PLATFORM.sh. Note that this currently builds fine on the Macintosh and Ubuntu; help is definitely appreciated on making the build process diff --git a/src/getdns/getdns.h b/src/getdns/getdns.h index 9e8f3556..4c461d7c 100644 --- a/src/getdns/getdns.h +++ b/src/getdns/getdns.h @@ -39,6 +39,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + struct event_base; #define GETDNS_COMPILATION_COMMENT The API implementation should fill in something here, such as a compilation version string and date, and change it each time the API is compiled. @@ -883,4 +887,7 @@ getdns_return_t getdns_extension_set_libevent_base(struct getdns_context *context, struct event_base *this_event_base); +#ifdef __cplusplus +} +#endif #endif /* GETDNS_H */