summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-13 13:36:56 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-13 13:36:56 (GMT)
commitd7e12b7b430435ba7ae9616976fad6f5a09c1d3f (patch)
treea8a38eab8b09981272d5ebba64e7aeaee66a1df6 /src
parentc447dd2f4a0f90060604d65a043c9544b423da7b (diff)
downloadpowder-d7e12b7b430435ba7ae9616976fad6f5a09c1d3f.zip
powder-d7e12b7b430435ba7ae9616976fad6f5a09c1d3f.tar.gz
Missing includes and declarations for Linux
Diffstat (limited to 'src')
-rw-r--r--src/Misc.cpp6
-rw-r--r--src/Misc.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/Misc.cpp b/src/Misc.cpp
index d2f5717..0d129e3 100644
--- a/src/Misc.cpp
+++ b/src/Misc.cpp
@@ -19,6 +19,12 @@
#include <ApplicationServices/ApplicationServices.h>
#endif
+#if defined(USE_SDL) && (defined(LIN32) || defined(LIN64)) && defined(SDL_VIDEO_DRIVER_X11)
+#include <SDL/SDL_syswm.h>
+SDL_SysWMinfo sdl_wminfo;
+Atom XA_CLIPBOARD, XA_TARGETS;
+#endif
+
char *clipboard_text = NULL;
char *exe_name(void)
diff --git a/src/Misc.h b/src/Misc.h
index db391b0..e35ce5f 100644
--- a/src/Misc.h
+++ b/src/Misc.h
@@ -4,6 +4,10 @@
#include <stdlib.h>
#include <string>
+#if defined(USE_SDL) && (defined(LIN32) || defined(LIN64)) && defined(SDL_VIDEO_DRIVER_X11)
+#include <SDL/SDL_syswm.h>
+#endif
+
#if defined(WIN32) && !defined(__GNUC__)
#define x86_cpuid(func,af,bf,cf,df) \
do {\