From cce2a81e85d9693a83ac30e9e58f732b59759a88 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 12 Apr 2012 11:06:05 +0800 Subject: change DATADIR to INSTALL_DATADIR solve mingw conflict Based on work from Radu Sorici Signed-off-by: Andy Green --- win32port/win32helpers/websock-w32.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'win32port/win32helpers/websock-w32.h') diff --git a/win32port/win32helpers/websock-w32.h b/win32port/win32helpers/websock-w32.h index 2d2bb4a..2483a8f 100644 --- a/win32port/win32helpers/websock-w32.h +++ b/win32port/win32helpers/websock-w32.h @@ -50,6 +50,13 @@ extern INT WSAAPI emulated_poll(LPWSAPOLLFD fdarray, ULONG nfds, INT timeout); /* override configure because we are not using Makefiles */ #define LWS_NO_FORK -#define DATADIR "." + +/* windows can't cope with this idea, needs assets in cwd */ + +#ifdef INSTALL_DATADIR +#undef INSTALL_DATADIR +#endif + +#define INSTALL_DATADIR "." #endif -- cgit v1.2.3