Re: __STDC_IEC_559__ (defined or !defined ?)

Discussion in 'C Programming' started by Keith Thompson, Aug 17, 2010.

  1. doriangray <> writes:
    > the "Further Notes" on gcc C99 status (http://gcc.gnu.org/c99status.html)
    > say:
    >
    > "IEC 60559 is IEEE 754 floating point. This works if and only if
    > the hardware is perfectly compliant, but GCC does not define
    > __STDC_IEC_559__ or implement the associated standard pragmas;
    > [...]"
    >
    >
    > but the simple program:
    >
    >
    > #include <stdio.h>
    > int main(void) {
    >
    > #ifdef __STDC_IEC_559__
    > puts("\n__STDC_IEC_559__ macro defined\n");
    > #else
    > puts("\n__STDC_IEC_559__ macro not defined\n");
    > #endif
    > return 0;
    > }
    >
    >
    > always performs the first 'puts' (gcc 4.4.4, Linux x86).
    > Can anyone tell me why?


    Yes, the folks in gnu.gcc.help probably can.

    --
    Keith Thompson (The_Other_Keith) <http://www.ghoti.net/~kst>
    Nokia
    "We must do something. This is something. Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"
     
    Keith Thompson, Aug 17, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Oodini
    Replies:
    1
    Views:
    1,845
    Keith Thompson
    Sep 27, 2005
  2. Angel Tsankov
    Replies:
    1
    Views:
    898
    Victor Bazarov
    Apr 5, 2006
  3. Replies:
    1
    Views:
    541
    Sion Arrowsmith
    Jul 10, 2008
  4. Francois Grieu
    Replies:
    0
    Views:
    308
    Francois Grieu
    Jun 8, 2010
  5. Francois Grieu
    Replies:
    2
    Views:
    388
    Francois Grieu
    Jun 10, 2010
Loading...

Share This Page