I finally figured out how to get gcc to disable compile in C89 mode, without going whole-hog and disabling all of Unix: CFLAGS = -std=c89 -U__STRICT_ANSI__ This way it flags // as a compile error, but everything else still works.