summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */