This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fix for longlong.h



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 */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]