yann@281: Index: uClibc/libc/sysdeps/linux/i386/bits/uClibc_arch_features.h yann@281: =================================================================== yann@281: --- uClibc/libc/sysdeps/linux/i386/bits/uClibc_arch_features.h (revision 18898) yann@281: +++ uClibc/libc/sysdeps/linux/i386/bits/uClibc_arch_features.h (working copy) yann@281: @@ -42,6 +42,8 @@ yann@281: /* define if target supports IEEE signed zero floats */ yann@281: #define __UCLIBC_HAVE_SIGNED_ZERO__ yann@281: yann@281: +#if defined _LIBC yann@281: #define internal_function __attribute__ ((regparm (3), stdcall)) yann@281: +#endif yann@281: yann@281: #endif /* _BITS_UCLIBC_ARCH_FEATURES_H */ yann@281: Index: uClibc/include/libc-symbols.h yann@281: =================================================================== yann@281: --- uClibc/include/libc-symbols.h (revision 18898) yann@281: +++ uClibc/include/libc-symbols.h (working copy) yann@281: @@ -22,6 +22,16 @@ yann@281: #ifndef _LIBC_SYMBOLS_H yann@281: #define _LIBC_SYMBOLS_H 1 yann@281: yann@281: +/* This is defined for the compilation of all C library code. features.h yann@281: + tests this to avoid inclusion of stubs.h while compiling the library, yann@281: + before stubs.h has been generated. Some library code that is shared yann@281: + with other packages also tests this symbol to see if it is being yann@281: + compiled as part of the C library. We must define this before including yann@281: + config.h, because it makes some definitions conditional on whether libc yann@281: + itself is being compiled, or just some generator program. */ yann@281: +#define _LIBC 1 yann@281: + yann@281: + yann@281: /* This file's macros are included implicitly in the compilation of every yann@281: file in the C library by -imacros. yann@281: yann@281: @@ -40,16 +50,6 @@ yann@281: yann@281: #include yann@281: yann@281: - yann@281: -/* This is defined for the compilation of all C library code. features.h yann@281: - tests this to avoid inclusion of stubs.h while compiling the library, yann@281: - before stubs.h has been generated. Some library code that is shared yann@281: - with other packages also tests this symbol to see if it is being yann@281: - compiled as part of the C library. We must define this before including yann@281: - config.h, because it makes some definitions conditional on whether libc yann@281: - itself is being compiled, or just some generator program. */ yann@281: -#define _LIBC 1 yann@281: - yann@281: /* Enable declarations of GNU extensions, since we are compiling them. */ yann@281: #define _GNU_SOURCE 1 yann@281: