Message ID | 54EB3551.8000300@gjlay.de |
---|---|
State | New |
Headers | show |
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.
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 */