#129 gcc compile error with latest runtime

closed
2002-04-30
2002-04-22
No

Listed below is a C source file:

#include <math.h>
int isnormal(double aVal);

It compiles without error under MinGW-1.1.tar.gz.

When I install mingw-runtime-2.0-20020412.tar.gz on
top of MinGW-1.1.tar.gz and attempt to compile it, I
get the message:

test.c:2: parse error before `sizeof'

Discussion

  • Danny Smith

    Danny Smith - 2002-04-22
    • assigned_to: earnie --> dannysmith
     
  • Danny Smith

    Danny Smith - 2002-04-22

    Logged In: YES
    user_id=11494

    This is mine.

    According to C99 std, isnormal is a macro as are the other
    is*(). I'll protect that block of macros in next release
    with:
    #if defined (__STDC_VERSION__) && __STDC_VERSION__ >=
    199901L

    Danny

     
  • Danny Smith

    Danny Smith - 2002-04-30
    • status: open --> closed
     
  • Danny Smith

    Danny Smith - 2002-04-30

    Logged In: YES
    user_id=11494

    I've added C99/__STRICT_ANSI__ guards. If you don't want
    the standard macro, either set std to C89 or undef the C99
    macro version before putting in your own function.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks