diff options
Diffstat (limited to 'src/htssafe.h')
-rw-r--r-- | src/htssafe.h | 14 |
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 |