summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-01-27 00:31:33 +0300
committerIgor Pashev <pashev.igor@gmail.com>2012-01-27 00:31:33 +0300
commit95e3719bebc98fa9b76b551f924972c4a08a5d42 (patch)
treea074a5300de21aca36ff274a305ca3764e8146ae
parentc19103b52f79a56901b9d4404d8d9655c18d7127 (diff)
downloadattr-95e3719bebc98fa9b76b551f924972c4a08a5d42.tar.gz
Define __THROW if missed
-rw-r--r--include/xattr.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/xattr.h b/include/xattr.h
index 3256c77..0181710 100644
--- a/include/xattr.h
+++ b/include/xattr.h
@@ -24,6 +24,18 @@
#include <features.h>
#endif
+#ifndef __THROW
+# ifdef __GNUC__
+# if defined __cplusplus
+# define __THROW throw()
+# else /* ! __cplusplus */
+# define __THROW __attribute__ ((__nothrow__))
+# endif
+# else /* ! __GNUC__ */
+# define __THROW /* nothing */
+# endif /* __GNUC__ */
+#endif /* __THROW */
+
#include <errno.h>
#ifndef ENOATTR
# define ENOATTR ENODATA /* No such attribute */