I tried using the STDC_VERSION macro to test the ISO C version, but pgcc doesn’t support this? gcc 4 supports this when using -std=c99
test.c:
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
printf(“%ld”,STDC_VERSION);
}
$ pgcc -c9x test.c
PGC-S-0039-Use of undeclared variable _STDC_VERSION (test.c: 6)