1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-07 18:30:55 +03:00

0022325: Patch to fix a build failure on GNU/kFreeBSD

This commit is contained in:
abv 2015-11-01 11:57:26 +03:00 committed by bugmaster
parent f33f393a11
commit a5916aa20b

View File

@ -21,34 +21,26 @@
#include <Standard_ProgramError.hxx> #include <Standard_ProgramError.hxx>
#include <TCollection_AsciiString.hxx> #include <TCollection_AsciiString.hxx>
static OSD_SysType whereAmI() { static OSD_SysType whereAmI()
#if defined(__digital__) || defined(__FreeBSD__) || defined(SUNOS) || defined(__APPLE__) || defined(__QNX__) {
#if defined(__digital__) || defined(__FreeBSD__) || defined(SUNOS) || defined(__APPLE__) || defined(__QNX__) || defined(__FreeBSD_kernel__)
return OSD_UnixBSD; return OSD_UnixBSD;
}
#elif defined(sgi) || defined(IRIX) || defined(__sun) || defined(SOLARIS) || defined(__sco__) || defined(__hpux) || defined(HPUX) #elif defined(sgi) || defined(IRIX) || defined(__sun) || defined(SOLARIS) || defined(__sco__) || defined(__hpux) || defined(HPUX)
return OSD_UnixSystemV; return OSD_UnixSystemV;
}
#elif defined(__osf__) || defined(DECOSF1) #elif defined(__osf__) || defined(DECOSF1)
return OSD_OSF; return OSD_OSF;
}
#elif defined(OS2) #elif defined(OS2)
return OSD_WindowsNT; return OSD_WindowsNT;
}
#elif defined(_WIN32) || defined(__WIN32__) #elif defined(_WIN32) || defined(__WIN32__)
return OSD_WindowsNT; return OSD_WindowsNT;
}
#elif defined(__CYGWIN32_) || defined(__MINGW32__) #elif defined(__CYGWIN32_) || defined(__MINGW32__)
return OSD_WindowsNT; return OSD_WindowsNT;
}
#elif defined(vax) || defined(__vms) #elif defined(vax) || defined(__vms)
return OSD_VMS; return OSD_VMS;
}
#elif defined(__linux__) || defined(__linux) #elif defined(__linux__) || defined(__linux)
return OSD_LinuxREDHAT; return OSD_LinuxREDHAT;
}
#elif defined(_AIX) || defined(AIX) #elif defined(_AIX) || defined(AIX)
return OSD_Aix; return OSD_Aix;
}
#else #else
struct utsname info; struct utsname info;
uname(&info); uname(&info);
@ -58,8 +50,8 @@ static OSD_SysType whereAmI() {
cout << info.version << endl; cout << info.version << endl;
cout << info.machine << endl; cout << info.machine << endl;
return OSD_Default; return OSD_Default;
}
#endif #endif
}
#if !(defined(_WIN32) || defined(__WIN32__)) #if !(defined(_WIN32) || defined(__WIN32__))