From a9a8025c7d71666e41b1d097df76ca412b833b22 Mon Sep 17 00:00:00 2001 From: cas Date: Tue, 31 Jul 2001 17:44:49 +0000 Subject: [PATCH] No comments --- src/WOKTools/WOKTools_BasicMap.cxx | 18 +++++++++++++----- src/WOKTools/WOKTools_Options.cxx | 15 +++++++++++---- src/WOKTools/WOKTools_Verbose.cxx | 11 +++++++---- src/WOKTools/WOKTools_Warning.cxx | 5 ----- 4 files changed, 31 insertions(+), 18 deletions(-) diff --git a/src/WOKTools/WOKTools_BasicMap.cxx b/src/WOKTools/WOKTools_BasicMap.cxx index 2bd5299..a2313c0 100755 --- a/src/WOKTools/WOKTools_BasicMap.cxx +++ b/src/WOKTools/WOKTools_BasicMap.cxx @@ -6,19 +6,27 @@ #include #include #include +#ifdef HAVE_CONFIG_H +# include +#endif #ifdef WNT #include #else -#include -#include +# include #endif -#include +#ifdef HAVE_UNISTD_H +# include +#endif -#ifdef LIN +#ifdef HAVE_MALLOC_H +# include +#endif + +#ifdef HAVE_IOMANIP_H # include -#endif // LIN +#endif //======================================================================= //function : WOKTools_BasicMap diff --git a/src/WOKTools/WOKTools_Options.cxx b/src/WOKTools/WOKTools_Options.cxx index 1963223..24f1782 100755 --- a/src/WOKTools/WOKTools_Options.cxx +++ b/src/WOKTools/WOKTools_Options.cxx @@ -3,10 +3,17 @@ // Author: Jean GAUTIER // +#ifdef HAVE_CONFIG_H +# include +#endif + +#ifdef HAVE_UNISTD_H +# include +#endif + #include #include - #include #include @@ -14,7 +21,7 @@ #include -#if defined( LIN ) +#if defined(HAVE_GETOPT_H) && !defined(HAVE_UNISTD_H) # include #elif !defined( WNT ) extern char *optarg; @@ -22,7 +29,7 @@ extern int optind; #else extern "C" Standard_IMPORT char *optarg; extern "C" Standard_IMPORT int optind; -extern "C" Standard_IMPORT int getopt ( int, char**, char* ); +extern "C" Standard_IMPORT int getopt( int, char**, char* ); #endif // WNT //======================================================================= @@ -43,7 +50,7 @@ WOKTools_Options::WOKTools_Options(const Standard_Integer argc, mydefines = new WOKTools_HSequenceOfDefine; myargs = new TColStd_HSequenceOfHAsciiString; myerrflg = Standard_False; -#if !defined( WNT ) && !defined( LIN ) +#if !defined( WNT ) && !defined( __GNUC__ ) optind = 1; #else optind = 0; diff --git a/src/WOKTools/WOKTools_Verbose.cxx b/src/WOKTools/WOKTools_Verbose.cxx index 63b61fb..1516c26 100755 --- a/src/WOKTools/WOKTools_Verbose.cxx +++ b/src/WOKTools/WOKTools_Verbose.cxx @@ -4,10 +4,13 @@ // #ifdef WNT -#include -#else -#include -#include +# include +#endif +#ifdef HAVE_CONFIG_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include #endif #include diff --git a/src/WOKTools/WOKTools_Warning.cxx b/src/WOKTools/WOKTools_Warning.cxx index baddb91..14707a7 100755 --- a/src/WOKTools/WOKTools_Warning.cxx +++ b/src/WOKTools/WOKTools_Warning.cxx @@ -3,10 +3,6 @@ // Author: Jean GAUTIER // -#ifndef WNT -#include -#endif - #include Standard_EXPORT WOKTools_Warning WarningMsg; @@ -16,6 +12,5 @@ WOKTools_Warning::WOKTools_Warning() : WOKTools_Message("WOK_WARNING", "Warning Set(); } - Standard_Character WOKTools_Warning::Code() const {return 'W';} -- 2.39.5