summaryrefslogtreecommitdiff
path: root/sigslot.h
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2012-02-15 19:15:31 +0200
committerOskari Timperi <oskari.timperi@iki.fi>2012-02-15 16:28:01 +0200
commit274faaa8fe57cbdf23e656d9d63b17fc81398d0a (patch)
tree34fe279ffc0d7ffc26b796f161afb8f7c1873dc3 /sigslot.h
parent432a00b9038dd26e268a3918631cb469e6ad377e (diff)
downloadsigslot-274faaa8fe57cbdf23e656d9d63b17fc81398d0a.tar.gz
sigslot-274faaa8fe57cbdf23e656d9d63b17fc81398d0a.zip
Define SIGSLOT_EMIT if it hasn't been defined
Diffstat (limited to 'sigslot.h')
-rw-r--r--sigslot.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sigslot.h b/sigslot.h
index 5133cc6..c60a81e 100644
--- a/sigslot.h
+++ b/sigslot.h
@@ -101,7 +101,13 @@
# endif
#endif
-#define SIGSLOT_EMIT broadcast
+#ifndef SIGSLOT_EMIT
+# ifdef QT_VERSION
+# define SIGSLOT_EMIT broadcast
+# else
+# define SIGSLOT_EMIT emit
+# endif
+#endif
namespace sigslot {