/*
 * test_gnuc.c - figure out if the compiler is gcc.
 */

#include <stdio.h>

int
main(int argc, char **argv)
{
    puts("(");
#if defined(__GNUC__) && ! defined(__INTEL_COMPILER)
    printf("__GNUC__ => %d,\n", __GNUC__);
#  ifdef __GNUC_MINOR__
    printf("__GNUC_MINOR__ =>%d,\n", __GNUC_MINOR__);
#  endif
#else
    puts("__GNUC__ => undef,");
#endif
    puts(");");
    return 0;
}

/*
 * Local variables:
 * c-indentation-style: bsd
 * c-basic-offset: 4
 * indent-tabs-mode: nil
 * End:
 *
 * vim: expandtab shiftwidth=4:
 */
