Fix for longlong.h
Andreas Jaeger
aj@suse.de
Tue Dec 21 03:45:00 GMT 1999
On alpha I got the following error message with glibc 2.2:
In file included from ../sysdeps/generic/divmod_1.c:30:
longlong.h:171: parse error before `__P'
../sysdeps/generic/divmod_1.c: In function `__mpn_divmod_1':
../sysdeps/generic/divmod_1.c:91: warning: implicit declaration of function `__udiv_qrnnd'
make[2]: *** [/usr/src/aj/build-glibc-2.2/stdlib/divmod_1.o] Error 1
make[2]: Leaving directory `/usr/src/aj/glibc-2.2/stdlib'
The appended patch fixes the problem.
Andreas
1999-12-21 Andreas Jaeger <aj@suse.de>
* stdlib/longlong.h: Remove __P.
Index: stdlib/longlong.h
===================================================================
*** stdlib/longlong.h 1999/12/18 19:28:26 1.20
--- stdlib/longlong.h 1999/12/21 11:44:44
***************
*** 168,174 ****
(q) = __udiv_qrnnd (&__r, (n1), (n0), (d)); \
(r) = __r; \
} while (0)
! extern UDItype __udiv_qrnnd __P ((UDItype *, UDItype, UDItype, UDItype));
#define UDIV_TIME 220
#endif /* LONGLONG_STANDALONE */
#endif /* __alpha */
--- 168,174 ----
(q) = __udiv_qrnnd (&__r, (n1), (n0), (d)); \
(r) = __r; \
} while (0)
! extern UDItype __udiv_qrnnd (UDItype *, UDItype, UDItype, UDItype);
#define UDIV_TIME 220
#endif /* LONGLONG_STANDALONE */
#endif /* __alpha */
More information about the Libc-hacker
mailing list