#! /bin/sh

# GCC wrapper that passes -std=c99, and rejects all other -std flags

for a in "$@" ; do
	case "$a" in
	    -std=*)
		echo "c99 wrapper: option $a rejected" >&2
		exit 1
		;;
	    *)
		;;
	esac
done

gcc -std=c99 "$@"
