aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index b0f3f1d..5b42825 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -232,6 +232,12 @@ extern int errno;
#ifdef INCLUDE_VECTOR
# include <vector>
#endif
+#ifdef INCLUDE_ARRAY
+# include <array>
+#endif
+#ifdef INCLUDE_FUNCTIONAL
+# include <functional>
+#endif
# include <cstring>
# include <new>
# include <utility>
@@ -789,6 +795,12 @@ extern void fancy_abort (const char *, int, const char *)
#define ALWAYS_INLINE inline
#endif
+#if GCC_VERSION >= 3004
+#define WARN_UNUSED_RESULT __attribute__ ((__warn_unused_result__))
+#else
+#define WARN_UNUSED_RESULT
+#endif
+
/* Use gcc_unreachable() to mark unreachable locations (like an
unreachable default case of a switch. Do not use gcc_assert(0). */
#if (GCC_VERSION >= 4005) && !ENABLE_ASSERT_CHECKING