From 23fa293e9e91c286d88288f7aa33f90649b92454 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Tue, 8 Jul 2014 07:06:10 +0000 Subject: Fixed htssafe.h --- src/htssafe.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/htssafe.h b/src/htssafe.h index cde0ad1..d21107c 100644 --- a/src/htssafe.h +++ b/src/htssafe.h @@ -43,7 +43,7 @@ Please visit our Website: http://www.httrack.com * Emergency logging. * Default is to use libhttrack one. */ -#ifndef HTSSAFE_ABORT_FUNCTION +#if (!defined(HTSSAFE_ABORT_FUNCTION) && defined(LIBHTTRACK_EXPORTS)) /** Assert error callback. **/ #ifndef HTS_DEF_FWSTRUCT_htsErrorCallback @@ -93,7 +93,9 @@ static HTS_UNUSED void log_abort_(const char *msg, const char *file, int line) { } static HTS_UNUSED void abortf_(const char *exp, const char *file, int line) { +#ifdef HTSSAFE_ABORT_FUNCTION HTSSAFE_ABORT_FUNCTION(exp, file, line); +#endif log_abort_(exp, file, line); abort(); } -- cgit v1.2.3