diff mbox

[avr] Include stdfix-avrlibc.h in stdfix.h

Message ID 54EB3551.8000300@gjlay.de
State New
Headers show

Commit Message

Georg-Johann Lay Feb. 23, 2015, 2:12 p.m. UTC
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>.

Comments

Denis Chertykov Feb. 23, 2015, 2:40 p.m. UTC | #1
2015-02-23 17:12 GMT+03:00 Georg-Johann Lay <avr@gjlay.de>:
> 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>.

Approved.

Denis.
diff mbox

Patch

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 */