Browse Source

Dont require special build flags for just one header

pull/1137/head
Hamish Coleman 1 year ago
parent
commit
b22c57a16f
  1. 1
      Makefile
  2. 4
      include/n2n_typedefs.h

1
Makefile

@ -153,7 +153,6 @@ LDLIBS+=-ln2n
LDLIBS+=$(LDLIBS_EXTRA)
ifeq ($(CONFIG_TARGET),mingw)
CFLAGS+=-I. -I./win32
LDLIBS+=$(abspath win32/n2n_win32.a)
LDLIBS+=-lnetapi32 -lws2_32 -liphlpapi
N2N_DEPS+=win32/n2n_win32.a

4
include/n2n_typedefs.h

@ -52,8 +52,8 @@ typedef int ssize_t;
typedef unsigned long in_addr_t;
#include "n2n_win32.h"
// FIXME - the above include is from a different subdir
#include "../win32/n2n_win32.h"
// FIXME - continue untangling the build and includes - dont have a ".." here
#endif /* #if defined(_MSC_VER) || defined(__MINGW32__) */

Loading…
Cancel
Save