about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2012-05-16 16:27:53 -0500
committerMarco Peereboom <marco@conformal.com>2012-05-16 16:27:57 -0500
commit9eb0f48bccb10b795dfacf5961563fc689e83045 (patch)
treeacc9df87d92a54ada5e26dd6750d1a909dcbda7b
parent51753c8943a749dd89b1edd1419c31343ae32ec8 (diff)
downloadxombrero-9eb0f48bccb10b795dfacf5961563fc689e83045.tar.gz
make gdk_flush compile time conditional
-rw-r--r--xxxterm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xxxterm.h b/xxxterm.h
index f52553c..9ad85c1 100644
--- a/xxxterm.h
+++ b/xxxterm.h
@@ -80,6 +80,14 @@ uint32_t	arc4random_uniform(uint32_t);
 #ifdef USE_THREADS
 #include <gcrypt.h>
 #include <pthread.h>
+
+/* #define USE_FLUSH */
+#ifdef USE_FLUSH
+#define GDK_FLUSH()	do { gdk_flush(); } while (0)
+#else
+#define GDK_FLUSH()
+#endif /* USE_FLUSH */
+
 #endif
 
 /* set if you don't want to use signals */