diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-07-08 07:06:10 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-07-08 07:06:10 +0000 |
commit | 23fa293e9e91c286d88288f7aa33f90649b92454 (patch) | |
tree | 940879ba4222e3e28182efa73e6c81781798e72a /src/htssafe.h | |
parent | 25c278b599ab4ff8e795e17e28207ca924dc1eda (diff) |
Fixed htssafe.h
Diffstat (limited to 'src/htssafe.h')
-rw-r--r-- | src/htssafe.h | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } |