stdfix.h [...]: Include <stdfix-avrlibc.h>.
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 24 Feb 2015 10:51:10 +0000 (10:51 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Tue, 24 Feb 2015 10:51:10 +0000 (10:51 +0000)
gcc/
* config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.

From-SVN: r220937

gcc/ChangeLog
gcc/config/avr/stdfix.h

index 4bbdfe39049030631c6585e67c6739e7f7a8eccc..bcae92c2918b58f4ddf2a716d94f19e25ce611cf 100644 (file)
@@ -1,3 +1,7 @@
+2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
+
+       * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
+
 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/65170
index a7433359596dd817cf43be86fb4029e67fe562c6..51f848b3bcd00fe3ed3c398a9212b45abdf90a3e 100644 (file)
@@ -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 */