From: cas Date: Tue, 24 Jul 2001 18:23:28 +0000 (+0000) Subject: No comments X-Git-Tag: V6_7_1~137 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=1a7badcbbf7a251e511349ea4116f64fdfbfd509;p=occt-wok.git No comments --- diff --git a/src/WOKUtils/WOKUtils_Param.cxx b/src/WOKUtils/WOKUtils_Param.cxx index 8635255..6d25622 100755 --- a/src/WOKUtils/WOKUtils_Param.cxx +++ b/src/WOKUtils/WOKUtils_Param.cxx @@ -3,6 +3,10 @@ // Author: Jean GAUTIER // +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include @@ -17,22 +21,19 @@ #include #include #include - #include #include - #include - #include - #include #ifdef WNT -#include -#else -#include +# include #endif +#if defined(HAVE_UNISTD_H) +# include +#endif //======================================================================= //function : WOKUtils_Param @@ -50,10 +51,20 @@ void WOKUtils_Param :: SetBasicVariables ( void ) { myapi -> AddVariable ( "%WOK_VERSION", WOK_VERSION ); #ifdef WNT myapi -> AddVariable ( "%Station", "wnt" ); -#elif defined( SOLARIS ) +#elif defined(__sun) || defined(SOLARIS) myapi -> AddVariable ( "%Station", "sun" ); -#elif defined( LIN ) +#elif defined(linux) || defined(LIN) myapi -> AddVariable ( "%Station", "lin" ); +#elif defined(__osf__) + myapi -> AddVariable ( "%Station", "ao1" ); +#elif defined(__hpux) || defined(HP-UX) + myapi -> AddVariable ( "%Station", "hp" ); +#elif defined(_AIX) + myapi -> AddVariable ( "%Station", "aix" ); +#elif defined(__FreeBSD__) + myapi -> AddVariable ( "%Station", "bsd" ); +#else + myapi -> AddVariable ( "%Station", "def" ); #endif // WNT } // end WOKUtils_Param :: SetBasicVariables @@ -474,8 +485,6 @@ Standard_Boolean WOKUtils_Param::LoadFile(const Handle(TCollection_HAsciiString) << "Function not found while loading file : " << afile << endm; break; case EDL_FILEOPENED: - if(filemaynotexist) return Standard_True; - break; case EDL_FILENOTOPENED: if(filemaynotexist) return Standard_True; ErrorMsg << "WOKUtils_Param::LoadParamClass"