Import Geant4 11.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2022-12-09 14:43:28 +01:00
parent c07cea1fe0
commit 9f34590941
3810 changed files with 200490 additions and 182326 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ inline date get_date(){
// Date is stored with the origin being the 1st january 1995.
// Time has 1 second precision.
time_t tloc = ::time(0);
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW32__)
struct tm *tp = (tm*)::localtime(&tloc); //not thread safe (but exist on Windows).
#else
struct tm tpa;
+4 -4
View File
@@ -21,7 +21,7 @@
#include <errno.h>
#include <sys/stat.h>
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <direct.h>
#include <io.h>
#else
@@ -62,7 +62,7 @@ public: //ifile
#if defined(__linux__) && (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2)
if (::lseek64(m_file, a_offset, whence) < 0) {
#elif defined(_MSC_VER)
#elif defined(_MSC_VER) || defined(__MINGW32__)
if (::_lseeki64(m_file, a_offset, whence) < 0) {
#else
if (::lseek(m_file, a_offset, whence) < 0) {
@@ -143,7 +143,7 @@ public: //ifile
<< std::endl;
return false;
}
#elif defined(__MINGW32__) || defined(__MINGW64__)
#elif defined(__MINGW32__)
return true;
#else
if (::fsync(m_file) < 0) {
@@ -253,7 +253,7 @@ public:
}
m_file = _open(a_path.c_str(),
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW32__)
O_RDWR | O_CREAT | O_BINARY,S_IREAD | S_IWRITE
#else
O_RDWR | O_CREAT,0644