aboutsummaryrefslogtreecommitdiff
path: root/cgcc
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2007-05-23 10:36:15 -0700
committerJosh Triplett <josh@freedesktop.org>2007-05-23 10:36:15 -0700
commitfc12753f64f86f6398697ac799aead94034f80dc (patch)
treee561ac56301350f084856e1a9964ef82bf6789d6 /cgcc
parentAdd cygwin support to cgcc (diff)
downloadsparse-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-xcgcc5
1 files changed, 2 insertions, 3 deletions
diff --git a/cgcc b/cgcc
index 93f3a9d..414bd9f 100755
--- a/cgcc
+++ b/cgcc
@@ -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__))'" .