Basic support for building Windows vncviewer using MinGW. This patch
includes non-intrusive changes, more tweaks will follow. Details:
* Defining WINVER and _WIN32_IE in both common and win modules.
* Need to build CFTMsgWriter and CFTMsgReader.
* Added configure script and Makefiles.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3326 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/configure.ac b/common/configure.ac
index 25aa5f0..d590e05 100644
--- a/common/configure.ac
+++ b/common/configure.ac
@@ -25,6 +25,12 @@
;;
esac
+case "$host_os" in
+ mingw*)
+ CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_IE=0x0500"
+ ;;
+esac
+
dnl FIXME: Remove duplication between this script and ../unix/configure.in
if test "$GCC" = yes; then
CFLAGS="$CFLAGS -Wall"