Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 61316 - possible bug in math.h when using __USE_ISOC99
possible bug in math.h when using __USE_ISOC99
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2002-03-17 12:32 EST by Need Real Name
Modified: 2016-11-24 10:12 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-03-17 12:33:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch for math.h (906 bytes, patch)
2002-03-17 12:33 EST, Need Real Name
no flags Details | Diff

  None (edit)
Description Need Real Name 2002-03-17 12:32:02 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020311

Description of problem:
When using the __USE_ISOC99 macro with math.h the compiler throws an error.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.write c-program with

#define __USE_ISOC99
#include <math.h>

and compile.

2.compiler complains that

/usr/include/math.h:118:17: #if with no expression
/usr/include/math.h:354:17: #if with no expression
Comment 1 Need Real Name 2002-03-17 12:33:15 EST
Created attachment 48804 [details]
patch for math.h
Comment 2 Jakub Jelinek 2002-03-17 14:10:51 EST
That's no bug. You shouldn't define glibc's internal macros.
If you want ISO C99 functions, use either:
(in order of preference).
This is all documented in info libc and /usr/include/features.h too.

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