aboutsummaryrefslogtreecommitdiff
path: root/win32port
diff options
context:
space:
mode:
authorJoakim Soderberg <joakim.soderberg@gmail.com>2013-02-22 09:28:17 +0800
committerAndy Green <andy.green@linaro.org>2013-02-22 09:28:17 +0800
commitc7ed2be638d7319cb0cb863c3e3d02b430ded405 (patch)
treed2f33634b4b495adf865a32264fee8516df16b0e /win32port
parentb82b0dd118cd575e3d5c59deabc084e2b9217cff (diff)
downloadlibwebsockets-c7ed2be638d7319cb0cb863c3e3d02b430ded405.tar.gz
Fix running test programs from within visual studio.
Copy test-server data to a path so that we can run the test-server from within visual studio without having to copy stuff around.
Diffstat (limited to 'win32port')
-rw-r--r--win32port/win32helpers/websock-w32.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/win32port/win32helpers/websock-w32.h b/win32port/win32helpers/websock-w32.h
index dfd99ca9..72a4f5c6 100644
--- a/win32port/win32helpers/websock-w32.h
+++ b/win32port/win32helpers/websock-w32.h
@@ -55,10 +55,8 @@ extern INT WSAAPI emulated_poll(LPWSAPOLLFD fdarray, ULONG nfds, INT timeout);
/* windows can't cope with this idea, needs assets in cwd */
-#ifdef INSTALL_DATADIR
-#undef INSTALL_DATADIR
-#endif
-
+#ifndef INSTALL_DATADIR
#define INSTALL_DATADIR "."
+#endif
#endif