c99 446 B

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