summaryrefslogtreecommitdiff
path: root/ev.h
diff options
context:
space:
mode:
authorMarc Alexander Lehmann <libev@schmorp.de>2014-11-09 09:00:16 +0000
committerMarc Alexander Lehmann <libev@schmorp.de>2014-11-09 09:00:16 +0000
commitbe063570698505df06c16bb1638b2a5d94cae415 (patch)
tree27a0895de07496a518ef1ca6c04584303059a95e /ev.h
parent13d7bb7754ee61c3d0fd687cecbfcdf9c12a37ff (diff)
downloadlibev-be063570698505df06c16bb1638b2a5d94cae415.tar.gz
libev-be063570698505df06c16bb1638b2a5d94cae415.zip
*** empty log message ***
Diffstat (limited to 'ev.h')
-rw-r--r--ev.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ev.h b/ev.h
index a831bc7..785a5da 100644
--- a/ev.h
+++ b/ev.h
@@ -42,12 +42,16 @@
#ifdef __cplusplus
# define EV_CPP(x) x
+# if __cplusplus >= 201103L
+# define EV_THROW noexcept
+# else
+# define EV_THROW throw ()
+# endif
#else
# define EV_CPP(x)
+# define EV_THROW
#endif
-#define EV_THROW EV_CPP(throw())
-
EV_CPP(extern "C" {)
/*****************************************************************************/