Bug 4786 - math.h and mathinline.h
math.h and mathinline.h
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
i386 Linux
high Severity medium
: ---
: ---
Assigned To: Cristian Gafton
Depends On:
  Show dependency treegraph
Reported: 1999-08-30 13:22 EDT by paris
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-10-06 13:09:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description paris 1999-08-30 13:22:41 EDT
Ok, so whenever i inlcude math.h it has this crazy notion
that mathinline.h needs be included as well, which causes
compile problems.  So after looking into this for a while i
found that __USE_EXTERN_INLINE is either always defined
somehow, even when using -U__USE__..  I changed the code in
the math.h file from:

# include <bits/mathinline.h>


#if defined __USE_EXTERN_INLINES && !defined
# include <bits/mathinline.h>

So when __NO_MATH_INLINES is defined, it won't use them.
There is still something wacky about __USE_EXTERN_INLINES
seeing that it is always being defined.

Let me know if there is a different/better fix for this.

Joe Paris
Argonne National Labs
Comment 1 Jeff Johnson 1999-08-31 14:34:59 EDT
This is a glibc problem
Comment 2 Cristian Gafton 1999-10-06 13:09:59 EDT
USE_EXTERN_INLINES are defined if using optimization (check the

Note You need to log in before you can comment on or make changes to this bug.