diff --git a/main.c b/main.c index aedd3d1..2933118 100644 --- a/main.c +++ b/main.c @@ -44,6 +44,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA #endif #include "init.c" +#include "msg.c" #include "output.c" #ifndef USE_OPENSSL diff --git a/msg.c b/msg.c index 2d9d540..801f41f 100644 --- a/msg.c +++ b/msg.c @@ -21,10 +21,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA #include #include +#include "export.h" #include "msg.h" -void fatal(const char *format, ...) +EXPORT void fatal(const char *format, ...) { va_list args; diff --git a/msg.h b/msg.h index c4d6b0e..c444a8d 100644 --- a/msg.h +++ b/msg.h @@ -1,7 +1,9 @@ #ifndef MKTORRENT_MSG_H #define MKTORRENT_MSG_H -void fatal(const char *format, ...); +#include "export.h" + +EXPORT void fatal(const char *format, ...); #define FATAL_IF(cond, format, ...) do { if (cond) fatal(format, __VA_ARGS__); } while(0)