summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorMarc Alexander Lehmann <libev@schmorp.de>2014-09-05 16:00:17 +0000
committerMarc Alexander Lehmann <libev@schmorp.de>2014-09-05 16:00:17 +0000
commitd2057c2b65727a0a98967fc784a8a15e4fe1c0c5 (patch)
treeeca3b56d30b51177852f760e33ac1ede992638ab /ev.c
parentcf196da9d91cdfc4c57a051e2fe75cb665fea756 (diff)
downloadlibev-d2057c2b65727a0a98967fc784a8a15e4fe1c0c5.tar.gz
libev-d2057c2b65727a0a98967fc784a8a15e4fe1c0c5.zip
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 03b697a..c8faa4b 100644
--- a/ev.c
+++ b/ev.c
@@ -807,11 +807,18 @@ typedef int ecb_bool;
#define ecb_decltype(x) __typeof(x)
#endif
+#if _MSC_VER >= 1300
+ #define ecb_deprecated __declspec(deprecated)
+#else
+ #define ecb_deprecated ecb_attribute ((__deprecated__))
+#endif
+
#define ecb_noinline ecb_attribute ((__noinline__))
#define ecb_unused ecb_attribute ((__unused__))
#define ecb_const ecb_attribute ((__const__))
#define ecb_pure ecb_attribute ((__pure__))
+/* http://msdn.microsoft.com/en-us/library/k6ktzx3s.aspx __declspec(noreturn) */
#if ECB_C11
#define ecb_noreturn _Noreturn
#else