diff --git a/build.vc10/config.guess.c b/build.vc10/config.guess.c index 0d58f034..b3ce1248 100644 --- a/build.vc10/config.guess.c +++ b/build.vc10/config.guess.c @@ -28,9 +28,6 @@ memcpy(p+4,&(a[3]),4); memcpy(p+8,&(a[2]),4); return a[0];} -main (int argc,char *argv[]) -{char *p;int a=sizeof(p)*8; - #define CONFIG_GUESS 1 // safe to always try 32bit #define CONFIG_GUESS_32BIT 1 @@ -39,5 +36,10 @@ main (int argc,char *argv[]) #define FAT64 0 #define INFAT 0 #include "../cpuid.c" + +main (int argc,char *argv[]) +{char *p,*modelstr;int a=sizeof(p)*8; + +modelstr=__gmpn_cpu(0); if(argc==2){printf("set GCPU=%s\nset GBITS=%d\n",modelstr,a);return 0;} printf("%s-pc-Win%d\n",modelstr,a);return 0;}