summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/avr-libc/files/avr-libc-macros.patch')
-rw-r--r--dev-embedded/avr-libc/files/avr-libc-macros.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-embedded/avr-libc/files/avr-libc-macros.patch b/dev-embedded/avr-libc/files/avr-libc-macros.patch
new file mode 100644
index 000000000000..9c9e5efcaf88
--- /dev/null
+++ b/dev-embedded/avr-libc/files/avr-libc-macros.patch
@@ -0,0 +1,18 @@
+diff -Nura avr-libc-1.2.3/common/macros.inc avr-libc-1.2.3.crossdev/common/macros.inc
+--- avr-libc-1.2.3/common/macros.inc 2004-11-01 18:19:54.000000000 -0300
++++ avr-libc-1.2.3.crossdev/common/macros.inc 2005-05-31 16:11:36.000000000 -0300
+@@ -35,6 +35,9 @@
+ Created by Marek Michalkiewicz <marekm@linux.org.pl>
+ */
+
++#ifndef _MACROS_INC
++#define _MACROS_INC
++
+ #include <avr/io.h>
+
+ /* if not defined, assume old version with underscores */
+@@ -219,3 +222,4 @@
+ #endif
+ .endm
+
++#endif