summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-22 21:56:22 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-22 21:56:22 +0000
commita7a22ef2e967ea079da4e4d257555ad2d7f20794 (patch)
tree398aafd3043483e4a38548b698d78ea67a986bff
parent7008806c9a09bd8f5d76d12b22c3fc08b832eeae (diff)
guard program_invocation_name w/ __ASSEMBLER__
-rw-r--r--include/errno.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/errno.h b/include/errno.h
index 87edbacdb..9f3c6efcb 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -43,19 +43,19 @@ __BEGIN_DECLS
variable. This redeclaration using the macro still works, but it
will be a function declaration without a prototype and may trigger
a -Wstrict-prototypes warning. */
-#ifndef __ASSEMBLER__
-# ifndef errno
+# ifndef __ASSEMBLER__
+# ifndef errno
extern int errno;
-# endif
-#endif
+# endif
-#if defined __USE_GNU && defined __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__
+# if defined __USE_GNU && defined __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__
/* The full and simple forms of the name with which the program was
invoked. These variables are set up automatically at startup based on
the value of ARGV[0] (this works only if you use GNU ld). */
extern char *program_invocation_name, *program_invocation_short_name;
-#endif /* __USE_GNU */
+# endif /* __USE_GNU */
+# endif /* __ASSEMBLER__ */
#endif /* _ERRNO_H */
__END_DECLS