--- imach/src/imach.c 2015/01/03 16:33:42 1.175 +++ imach/src/imach.c 2015/01/03 16:45:04 1.176 @@ -1,6 +1,9 @@ -/* $Id: imach.c,v 1.175 2015/01/03 16:33:42 brouard Exp $ +/* $Id: imach.c,v 1.176 2015/01/03 16:45:04 brouard Exp $ $State: Exp $ $Log: imach.c,v $ + Revision 1.176 2015/01/03 16:45:04 brouard + *** empty log message *** + Revision 1.175 2015/01/03 16:33:42 brouard *** empty log message *** @@ -623,11 +626,11 @@ typedef struct { #define ODIRSEPARATOR '\\' #endif -/* $Id: imach.c,v 1.175 2015/01/03 16:33:42 brouard Exp $ */ +/* $Id: imach.c,v 1.176 2015/01/03 16:45:04 brouard Exp $ */ /* $State: Exp $ */ char version[]="Imach version 0.98p, December 2014,INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121), Intel Software 2015"; -char fullversion[]="$Revision: 1.175 $ $Date: 2015/01/03 16:33:42 $"; +char fullversion[]="$Revision: 1.176 $ $Date: 2015/01/03 16:45:04 $"; char strstart[80]; char optionfilext[10], optionfilefiname[FILENAMELENGTH]; int erreur=0, nberr=0, nbwarn=0; /* Error number, number of errors number of warnings */ @@ -5506,6 +5509,7 @@ void syscompilerinfo() /* #include "syscompilerinfo.h"*/ #if defined(__GNUC__) #include /* Only on gnu */ +struct utsname sysInfo; #endif #include @@ -5574,15 +5578,6 @@ void syscompilerinfo() printf(" wtf-bit"); fprintf(ficlog," wtf-bit");/* wtf */ #endif -/* struct utsname sysInfo; - - if (uname(&sysInfo) != -1) { - printf(" %s %s %s %s %s\n",sysInfo.sysname, sysInfo.nodename, sysInfo.release, sysInfo.version, sysInfo.machine); - fprintf(ficlog," %s %s %s %s %s\n ",sysInfo.sysname, sysInfo.nodename, sysInfo.release, sysInfo.version, sysInfo.machine); - } - else - perror("uname() error"); - */ #if defined(__GNUC__) # if defined(__GNUC_PATCHLEVEL__) # define __GNUC_VERSION__ (__GNUC__ * 10000 \ @@ -5594,6 +5589,13 @@ void syscompilerinfo() # endif printf(" using GNU C version %d.\n", __GNUC_VERSION__); fprintf(ficlog, " using GNU C version %d.\n", __GNUC_VERSION__); + + if (uname(&sysInfo) != -1) { + printf("Running on: %s %s %s %s %s\n",sysInfo.sysname, sysInfo.nodename, sysInfo.release, sysInfo.version, sysInfo.machine); + fprintf(ficlog,"Running on: %s %s %s %s %s\n ",sysInfo.sysname, sysInfo.nodename, sysInfo.release, sysInfo.version, sysInfo.machine); + } + else + perror("uname() error"); printf("GNU libc version: %s\n", gnu_get_libc_version()); fprintf(ficlog,"GNU libc version: %s\n", gnu_get_libc_version()); @@ -5603,12 +5605,12 @@ void syscompilerinfo() // { #if defined(_MSC_VER) if (IsWow64()){ - printf("The program (probably compile for 32bit) is running under WOW64 (64bit) emulation.\n"); - fprintf(ficlog, "The program (ie 32bit) is running under WOW64 (64bit) emulation.\n"); + printf("The program (probably compiled for 32bit) is running under WOW64 (64bit) emulation.\n"); + fprintf(ficlog, "The program (probably compiled for 32bit) is running under WOW64 (64bit) emulation.\n"); } else{ - printf("The process is not running under WOW64 (i.e probably on a 64bits windows).\n"); - frintf(ficlog,"The programm is not running under WOW64 (i.e probably on a 64bits windows).\n"); + printf("The process is not running under WOW64 (i.e probably on a 64bit Windows).\n"); + frintf(ficlog,"The programm is not running under WOW64 (i.e probably on a 64bit Windows).\n"); } // printf("\nPress Enter to continue..."); // getchar();