[Spice-commits] Makefile.am vdagent/vdagent.cpp

Marc-André Lureau elmarco at kemper.freedesktop.org
Tue Apr 30 13:30:11 PDT 2013


 Makefile.am         |    2 ++
 vdagent/vdagent.cpp |    5 +++++
 2 files changed, 7 insertions(+)

New commits:
commit 4ca71770f2cc9d4f187891ee4ad3e9b700905d16
Author: Marc-André Lureau <marcandre.lureau at gmail.com>
Date:   Mon Apr 22 17:20:48 2013 +0200

    build-sys: fix mingw build

diff --git a/Makefile.am b/Makefile.am
index 3bd66aa..2b7bbc4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,6 +24,7 @@ vdagent_LDADD = -lwtsapi32 $(CXIMAGE_LIBS) vdagent_rc.$(OBJEXT)
 vdagent_CXXFLAGS = $(AM_CXXFLAGS) $(CXIMAGE_CFLAGS)
 vdagent_LDFLAGS = $(AM_LDFLAGS) -Wl,--subsystem,windows
 vdagent_SOURCES =			\
+	common/vdcommon.cpp             \
 	common/vdcommon.h		\
 	common/vdlog.cpp		\
 	common/vdlog.h			\
@@ -42,6 +43,7 @@ MAINTAINERCLEANFILES += vdagent_rc.$(OBJEXT)
 vdservice_LDADD = -lwtsapi32 vdservice_rc.$(OBJEXT)
 vdservice_SOURCES =			\
 	common/stdint.h			\
+	common/vdcommon.cpp             \
 	common/vdcommon.h		\
 	common/vdlog.cpp		\
 	common/vdlog.h			\
diff --git a/vdagent/vdagent.cpp b/vdagent/vdagent.cpp
index dde967c..e84fb07 100644
--- a/vdagent/vdagent.cpp
+++ b/vdagent/vdagent.cpp
@@ -33,6 +33,11 @@
 #define VD_CLIPBOARD_TIMEOUT_MS 3000
 #define VD_CLIPBOARD_FORMAT_MAX_TYPES 16
 
+// only in vista+, not yet in mingw
+#ifndef WM_CLIPBOARDUPDATE
+#define WM_CLIPBOARDUPDATE      0x031D
+#endif
+
 //FIXME: extract format/type stuff to win_vdagent_common for use by windows\platform.cpp as well
 typedef struct VDClipboardFormat {
     uint32_t format;


More information about the Spice-commits mailing list