version 1.175, 2015/01/03 16:33:42
|
version 1.177, 2015/01/03 18:40:56
|
Line 1
|
Line 1
|
/* $Id$ |
/* $Id$ |
$State$ |
$State$ |
$Log$ |
$Log$ |
|
Revision 1.177 2015/01/03 18:40:56 brouard |
|
Summary: Still testing ilc32 on OSX |
|
|
|
Revision 1.176 2015/01/03 16:45:04 brouard |
|
*** empty log message *** |
|
|
Revision 1.175 2015/01/03 16:33:42 brouard |
Revision 1.175 2015/01/03 16:33:42 brouard |
*** empty log message *** |
*** empty log message *** |
|
|
Line 5501 BOOL IsWow64()
|
Line 5507 BOOL IsWow64()
|
return bIsWow64 != FALSE; |
return bIsWow64 != FALSE; |
} |
} |
#endif |
#endif |
|
|
void syscompilerinfo() |
void syscompilerinfo() |
{ |
{ |
/* #include "syscompilerinfo.h"*/ |
/* #include "syscompilerinfo.h"*/ |
#if defined(__GNUC__) |
|
|
#if defined __INTEL_COMPILER |
|
struct utsname sysInfo; |
|
#elif defined(__GNUC__) |
#include <gnu/libc-version.h> /* Only on gnu */ |
#include <gnu/libc-version.h> /* Only on gnu */ |
|
struct utsname sysInfo; |
#endif |
#endif |
|
|
#include <stdint.h> |
#include <stdint.h> |
Line 5574 void syscompilerinfo()
|
Line 5585 void syscompilerinfo()
|
printf(" wtf-bit"); fprintf(ficlog," wtf-bit");/* wtf */ |
printf(" wtf-bit"); fprintf(ficlog," wtf-bit");/* wtf */ |
#endif |
#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__) |
# if defined(__GNUC_PATCHLEVEL__) |
# if defined(__GNUC_PATCHLEVEL__) |
# define __GNUC_VERSION__ (__GNUC__ * 10000 \ |
# define __GNUC_VERSION__ (__GNUC__ * 10000 \ |
Line 5594 void syscompilerinfo()
|
Line 5596 void syscompilerinfo()
|
# endif |
# endif |
printf(" using GNU C version %d.\n", __GNUC_VERSION__); |
printf(" using GNU C version %d.\n", __GNUC_VERSION__); |
fprintf(ficlog, " 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"); |
|
#ifndef __INTEL_COMPILER |
printf("GNU libc version: %s\n", gnu_get_libc_version()); |
printf("GNU libc version: %s\n", gnu_get_libc_version()); |
fprintf(ficlog,"GNU libc version: %s\n", gnu_get_libc_version()); |
fprintf(ficlog,"GNU libc version: %s\n", gnu_get_libc_version()); |
|
#endif |
#endif |
#endif |
|
|
// void main() |
// void main() |
// { |
// { |
#if defined(_MSC_VER) |
#if defined(_MSC_VER) |
if (IsWow64()){ |
if (IsWow64()){ |
printf("The program (probably compile for 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 (ie 32bit) is running under WOW64 (64bit) emulation.\n"); |
fprintf(ficlog, "The program (probably compiled for 32bit) is running under WOW64 (64bit) emulation.\n"); |
} |
} |
else{ |
else{ |
printf("The process 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 64bits windows).\n"); |
frintf(ficlog,"The programm is not running under WOW64 (i.e probably on a 64bit Windows).\n"); |
} |
} |
// printf("\nPress Enter to continue..."); |
// printf("\nPress Enter to continue..."); |
// getchar(); |
// getchar(); |