This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, avr] Include stdfix-avrlibc.h in stdfix.h
- From: Georg-Johann Lay <avr at gjlay dot de>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Denis Chertykov <chertykov at gmail dot com>
- Date: Mon, 23 Feb 2015 15:12:33 +0100
- Subject: [patch, avr] Include stdfix-avrlibc.h in stdfix.h
- Authentication-results: sourceware.org; auth=none
This include stdfix-avrlibc.h in the avr-gcc specific stdfix.h.
Ok for trunk?
Johann
gcc/
* config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
Index: config/avr/stdfix.h
===================================================================
--- config/avr/stdfix.h (revision 220854)
+++ config/avr/stdfix.h (working copy)
@@ -233,4 +233,13 @@ typedef long long unsigned int uint_uk_t
#define roundfx __builtin_avr_roundfx
#define countlsfx __builtin_avr_countlsfx
+
+/* Hook in stuff from AVR-Libc. */
+
+#if (defined (__WITH_AVRLIBC__) \
+ && defined (__has_include) \
+ && __has_include (<stdfix-avrlibc.h>))
+#include <stdfix-avrlibc.h>
+#endif
+
#endif /* _AVRGCC_STDFIX_H */