diff options
author | Josh Triplett <josh@freedesktop.org> | 2007-05-23 10:36:15 -0700 |
---|---|---|
committer | Josh Triplett <josh@freedesktop.org> | 2007-05-23 10:36:15 -0700 |
commit | fc12753f64f86f6398697ac799aead94034f80dc (patch) | |
tree | e561ac56301350f084856e1a9964ef82bf6789d6 /cgcc | |
parent | Add cygwin support to cgcc (diff) | |
download | sparse-fc12753f64f86f6398697ac799aead94034f80dc.tar.gz sparse-fc12753f64f86f6398697ac799aead94034f80dc.tar.bz2 sparse-fc12753f64f86f6398697ac799aead94034f80dc.zip |
Sparse always defines __STDC__ 1, so cgcc does not need to do so
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Diffstat (limited to 'cgcc')
-rwxr-xr-x | cgcc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -210,13 +210,12 @@ sub add_specs { ' -DNULL="((void *)0)"'; } elsif ($spec eq 'linux') { return &add_specs ('unix') . - ' -D__linux__=1 -D__linux=1 -Dlinux=linux' . - ' -D__STDC__=1'; + ' -D__linux__=1 -D__linux=1 -Dlinux=linux'; } elsif ($spec eq 'unix') { return ' -Dunix=1 -D__unix=1 -D__unix__=1'; } elsif ( $spec =~ /^cygwin/) { return &add_specs ('unix') . - ' -D__STDC__=1 -D__CYGWIN__=1 -D__CYGWIN32__=1' . + ' -D__CYGWIN__=1 -D__CYGWIN32__=1' . " -D'_cdecl=__attribute__((__cdecl__))'" . " -D'__cdecl=__attribute__((__cdecl__))'" . " -D'_stdcall=__attribute__((__stdcall__))'" . |