]> git.draconx.ca Git - gentoo-draconx.git/blob - sys-devel/gcc/files/c99
xorg-server: Add live ebuild.
[gentoo-draconx.git] / sys-devel / gcc / files / c99
1 #! /bin/sh
2
3 # Call the appropriate C compiler with options to accept ANSI/ISO C
4 # The following options are the same (as of gcc-3.3):
5 #       -std=c99
6 #       -std=c9x
7 #       -std=iso9899:1999
8 #       -std=iso9899:199x
9
10 for i; do
11     case "$i" in
12         -std=c9[9x]|-std=iso9899:199[9x])
13             ;;
14         -ansi|-std=*)
15             echo >&2 "`basename $0` called with non ANSI/ISO C99 option $i"
16             exit 1
17             ;;
18     esac
19 done
20
21 exec gcc -std=c99 -pedantic -U_FORTIFY_SOURCE ${1+"$@"}