summaryrefslogtreecommitdiff
path: root/src/htssafe.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-06-08 13:02:43 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-06-08 13:02:43 +0000
commit6d1544383e5c6cbf33dab7526e489a7bf58aacd3 (patch)
tree1e09d693337a6bedde4a15d6afa1f2c83e65a345 /src/htssafe.h
parentcd268fd39ed5c64dd1c6b16e3284f10b79bf982b (diff)
Public definitions cleanup (especially for httraqt)
htsopt.h now has the following definitions: * struct htsrequest_proxy * struct htsrequest * struct htsblk * struct lien_url * struct lien_back
Diffstat (limited to 'src/htssafe.h')
-rw-r--r--src/htssafe.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/htssafe.h b/src/htssafe.h
index d0d6c2a..cde0ad1 100644
--- a/src/htssafe.h
+++ b/src/htssafe.h
@@ -33,10 +33,6 @@ Please visit our Website: http://www.httrack.com
#ifndef HTSSAFE_DEFH
#define HTSSAFE_DEFH
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -53,7 +49,13 @@ extern "C" {
#ifndef HTS_DEF_FWSTRUCT_htsErrorCallback
#define HTS_DEF_FWSTRUCT_htsErrorCallback
typedef void (*htsErrorCallback) (const char *msg, const char *file, int line);
+#ifdef __cplusplus
+extern "C" {
+#endif
HTSEXT_API htsErrorCallback hts_get_error_callback(void);
+#ifdef __cplusplus
+}
+#endif
#endif
#define HTSSAFE_ABORT_FUNCTION(A,B,C) do { \
@@ -207,8 +209,4 @@ static HTS_INLINE HTS_UNUSED char* strcpy_safe_(char *const dest, const size_t s
#define realloct(A,B) realloc(A, B)
#define memcpybuff(A, B, N) memcpy((A), (B), (N))
-#ifdef __cplusplus
-}
-#endif
-
#endif