From bc8f665803f580cc66bd33e98e8a81236ca57660 Mon Sep 17 00:00:00 2001 From: jasonmoxham Date: Mon, 4 Apr 2011 00:43:00 +0000 Subject: [PATCH] and for windows --- build.vc10/config.guess.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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;}