[uClibc] __MATH_INLINE in bits/mathinline.h

Amir Shalem amir at boom.org.il
Tue Dec 7 10:51:33 UTC 2004


When compiling C code
__MATH_INLINE is defined to 'extern __inline' in <bits/mathinline.h>.
Shouldn't it be 'static __inline' ?

otherwise, when compiling code (with gcc 3.3.4):

  #define __OPTIMIZE__
  #define _GNU_SOURCE
  #include <math.h>
  int main(void) { (void) lrintf(0.0); return 0; }

passes compiling, but fails in linking, because lrintf() is missing.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20041207/9f10cdb7/attachment-0002.pgp 

More information about the uClibc mailing list