使用预定义宏时出错了,求助
程序代码:
// predef.c -- 预定义标识符 #include <stdio.h> void why_me (); int main () { printf("The file is %s.\n",__FILE__); printf("The date is %s.\n",__DATE__); printf("The time is %s.\n",__TIME__); printf("The version is %ld.\n",__STDC_HOSTED__); printf("The is line %d.\n",__LINE__); printf("The function is %s.\n",__func__); why_me (); return 0; } void why_me() { //printf("This function is %s\n",__func__); printf("This is line %d.\n",__LINE__); }
用vs2012编译时出现了如下图这样的问题,是编译器不支持__func__和__STDC_HOSTED__吗?要怎么解决?