summaryrefslogtreecommitdiff
path: root/win32port/win32helpers/websock-w32.h
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2012-04-12 11:06:05 +0800
committerAndy Green <andy.green@linaro.org>2012-04-12 13:31:25 +0800
commitcce2a81e85d9693a83ac30e9e58f732b59759a88 (patch)
tree244515ed454d16f98298144406f481c9eb594b31 /win32port/win32helpers/websock-w32.h
parenta3147888d6aef9c10505e4ad1effa62930f384dc (diff)
change DATADIR to INSTALL_DATADIR solve mingw conflict
Based on work from Radu Sorici <soriciradu@gmail.com> Signed-off-by: Andy Green <andy.green@linaro.org>
Diffstat (limited to 'win32port/win32helpers/websock-w32.h')
-rw-r--r--win32port/win32helpers/websock-w32.h9
1 files changed, 8 insertions, 1 deletions
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