Skip to content

Commit

Permalink
add EXPORT macro to functions
Browse files Browse the repository at this point in the history
  • Loading branch information
uno20001 committed Apr 19, 2020
1 parent 334c42a commit 416f192
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
#include <stdlib.h>
#include <stdarg.h>

#include "export.h"
#include "msg.h"


void fatal(const char *format, ...)
EXPORT void fatal(const char *format, ...)
{

va_list args;
Expand Down
4 changes: 3 additions & 1 deletion msg.h
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 416f192

Please sign in to comment.