1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

0020716: Eliminate usage of "config.h" header file

All inclusions of "config.h" were removed.

All places where macros defined by config.h were checked and removed

Small corrections for mac os.

Unused code in file OSD_Disk.cxx was removed.

Unused macros and includes were removed from samples and code.

Added necessary includes for MacOS.

Correct new additional compilation warning on Linux platform.

Fix for error in OSD_Chronometer on Debian70/Fedora18
This commit is contained in:
apn 2014-09-05 10:39:31 +04:00 committed by bugmaster
parent 71b73fde24
commit 03155c18a5
74 changed files with 74 additions and 877 deletions

View File

@ -111,9 +111,9 @@ add_definitions(-DCSFDB)
if(WIN32) if(WIN32)
add_definitions(/DWNT -wd4996) add_definitions(/DWNT -wd4996)
elseif(APPLE) elseif(APPLE)
add_definitions(-fexceptions -fPIC -DOCC_CONVERT_SIGNALS -DHAVE_WOK_CONFIG_H -DHAVE_CONFIG_H) add_definitions(-fexceptions -fPIC -DOCC_CONVERT_SIGNALS)
else() else()
add_definitions(-fexceptions -fPIC -DOCC_CONVERT_SIGNALS -DHAVE_WOK_CONFIG_H -DHAVE_CONFIG_H -DLIN) add_definitions(-fexceptions -fPIC -DOCC_CONVERT_SIGNALS -DLIN)
endif() endif()
# enable structured exceptions for MSVC # enable structured exceptions for MSVC

View File

@ -51,7 +51,7 @@ unix {
!macx | equals(MACOSX_USE_GLX, true): INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD !macx | equals(MACOSX_USE_GLX, true): INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
!macx | equals(MACOSX_USE_GLX, true): DEFINES += LIN LININTEL !macx | equals(MACOSX_USE_GLX, true): DEFINES += LIN LININTEL
equals(MACOSX_USE_GLX, true): DEFINES += MACOSX_USE_GLX equals(MACOSX_USE_GLX, true): DEFINES += MACOSX_USE_GLX
DEFINES += OCC_CONVERT_SIGNALS HAVE_CONFIG_H HAVE_WOK_CONFIG_H QT_NO_STL DEFINES += OCC_CONVERT_SIGNALS QT_NO_STL
!macx | equals(MACOSX_USE_GLX, true): LIBS += -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD !macx | equals(MACOSX_USE_GLX, true): LIBS += -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD
LIBS += -lfreeimageplus LIBS += -lfreeimageplus
LIBS += -ltbb -ltbbmalloc LIBS += -ltbb -ltbbmalloc

View File

@ -54,7 +54,7 @@ unix {
!macx | equals(MACOSX_USE_GLX, true): INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD !macx | equals(MACOSX_USE_GLX, true): INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
!macx | equals(MACOSX_USE_GLX, true): DEFINES += LIN LININTEL !macx | equals(MACOSX_USE_GLX, true): DEFINES += LIN LININTEL
equals(MACOSX_USE_GLX, true): DEFINES += MACOSX_USE_GLX equals(MACOSX_USE_GLX, true): DEFINES += MACOSX_USE_GLX
DEFINES += OCC_CONVERT_SIGNALS HAVE_CONFIG_H HAVE_WOK_CONFIG_H QT_NO_STL DEFINES += OCC_CONVERT_SIGNALS QT_NO_STL
!macx | equals(MACOSX_USE_GLX, true): LIBS += -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD !macx | equals(MACOSX_USE_GLX, true): LIBS += -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD
LIBS += -lfreeimageplus LIBS += -lfreeimageplus
LIBS += -ltbb -ltbbmalloc LIBS += -ltbb -ltbbmalloc

View File

@ -39,7 +39,7 @@ unix {
!macx | equals(MACOSX_USE_GLX, true): INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD !macx | equals(MACOSX_USE_GLX, true): INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
!macx | equals(MACOSX_USE_GLX, true): DEFINES += LIN LININTEL !macx | equals(MACOSX_USE_GLX, true): DEFINES += LIN LININTEL
equals(MACOSX_USE_GLX, true): DEFINES += MACOSX_USE_GLX equals(MACOSX_USE_GLX, true): DEFINES += MACOSX_USE_GLX
DEFINES += OCC_CONVERT_SIGNALS HAVE_CONFIG_H HAVE_WOK_CONFIG_H QT_NO_STL DEFINES += OCC_CONVERT_SIGNALS QT_NO_STL
!macx | equals(MACOSX_USE_GLX, true): LIBS += -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD !macx | equals(MACOSX_USE_GLX, true): LIBS += -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD
LIBS += -lfreeimageplus LIBS += -lfreeimageplus
LIBS += -ltbb -ltbbmalloc LIBS += -ltbb -ltbbmalloc

View File

@ -14,10 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <Draw_Interpretor.hxx> #include <Draw_Interpretor.hxx>
#include <BRepTest.hxx> #include <BRepTest.hxx>
#include <Draw.hxx> #include <Draw.hxx>
@ -31,11 +27,6 @@
#include <TopoDS_Shape.hxx> #include <TopoDS_Shape.hxx>
#include <Precision.hxx> #include <Precision.hxx>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
//========================================================================= //=========================================================================
// function : chamfer // function : chamfer

View File

@ -15,10 +15,6 @@
// commercial license or contractual agreement. // commercial license or contractual agreement.
#include <BRepTest.hxx> #include <BRepTest.hxx>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <BRepAlgo.hxx> #include <BRepAlgo.hxx>
#include <BRepCheck_Analyzer.hxx> #include <BRepCheck_Analyzer.hxx>
#include <BRepCheck_Result.hxx> #include <BRepCheck_Result.hxx>
@ -72,9 +68,6 @@
#include <Standard_Failure.hxx> #include <Standard_Failure.hxx>
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
static char* checkfaultyname = NULL; static char* checkfaultyname = NULL;
Standard_EXPORT void BRepTest_CheckCommands_SetFaultyName(const char* name) Standard_EXPORT void BRepTest_CheckCommands_SetFaultyName(const char* name)

View File

@ -14,10 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <Draw_Interpretor.hxx> #include <Draw_Interpretor.hxx>
#include <Draw_Appli.hxx> #include <Draw_Appli.hxx>
#include <DrawTrSurf.hxx> #include <DrawTrSurf.hxx>
@ -71,13 +67,10 @@
#include <Precision.hxx> #include <Precision.hxx>
#ifdef WNT #ifdef _WIN32
//#define strcasecmp _stricmp Already defined //#define strcasecmp _stricmp Already defined
Standard_IMPORT Draw_Viewer dout; Standard_IMPORT Draw_Viewer dout;
#endif #endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
static BRepFeat_MakeCylindricalHole theHole; static BRepFeat_MakeCylindricalHole theHole;
static Standard_Boolean WithControl = Standard_True; static Standard_Boolean WithControl = Standard_True;

View File

@ -14,11 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <string.h>
#include <BRepTest.hxx> #include <BRepTest.hxx>
#include <TColgp_Array1OfPnt2d.hxx> #include <TColgp_Array1OfPnt2d.hxx>
#include <DBRep.hxx> #include <DBRep.hxx>
@ -57,14 +52,7 @@
#include <TopAbs.hxx> #include <TopAbs.hxx>
#include <DrawTrSurf.hxx> #include <DrawTrSurf.hxx>
#ifdef WNT
//#define strcasecmp strcmp Already defined
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <stdio.h> #include <stdio.h>
//#endif
static Standard_Real t3d = 1.e-4; static Standard_Real t3d = 1.e-4;

View File

@ -14,9 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <BRepTest.hxx> #include <BRepTest.hxx>
#include <GeometryTest.hxx> #include <GeometryTest.hxx>
@ -46,13 +43,10 @@
#include <Precision.hxx> #include <Precision.hxx>
#include <Draw_ProgressIndicator.hxx> #include <Draw_ProgressIndicator.hxx>
#ifdef WNT #ifdef _WIN32
//#define strcasecmp strcmp Already defined //#define strcasecmp strcmp Already defined
#include <stdio.h> #include <stdio.h>
#endif #endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// suppressarg : suppress a[d],modifie na-- // suppressarg : suppress a[d],modifie na--

View File

@ -14,9 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <BRepTest.hxx> #include <BRepTest.hxx>
#include <DBRep.hxx> #include <DBRep.hxx>
#include <Draw_Interpretor.hxx> #include <Draw_Interpretor.hxx>
@ -49,10 +46,6 @@
#include <TopTools_IndexedMapOfShape.hxx> #include <TopTools_IndexedMapOfShape.hxx>
#include <TopExp.hxx> #include <TopExp.hxx>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
//======================================================================= //=======================================================================
// topop // topop
//======================================================================= //=======================================================================

View File

@ -14,10 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <DBRep.ixx> #include <DBRep.ixx>
#include <DBRep_DrawableShape.hxx> #include <DBRep_DrawableShape.hxx>
#include <Draw_Appli.hxx> #include <Draw_Appli.hxx>
@ -50,14 +46,10 @@
// memory management // memory management
#include <Standard.hxx> #include <Standard.hxx>
//#ifdef WNT
#include <stdio.h> #include <stdio.h>
#ifdef WNT #ifdef _WIN32
extern Draw_Viewer dout; extern Draw_Viewer dout;
#endif #endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#define Characters(IArg) (strspn (Arg[IArg], "0123456789.+-eE") != strlen (Arg[IArg])) #define Characters(IArg) (strspn (Arg[IArg], "0123456789.+-eE") != strlen (Arg[IArg]))
#define Float(IArg) (strspn (Arg[IArg], "0123456789+-") != strlen (Arg[IArg])) #define Float(IArg) (strspn (Arg[IArg], "0123456789+-") != strlen (Arg[IArg]))

View File

@ -14,38 +14,13 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <Draw.ixx> #include <Draw.ixx>
#if defined(HAVE_TIME_H) || defined(WNT)
# include <time.h>
#endif
#include <Draw_Appli.hxx> #include <Draw_Appli.hxx>
#include <OSD.hxx> #include <OSD.hxx>
#include <OSD_Environment.hxx> #include <OSD_Environment.hxx>
#include <OSD_Timer.hxx> #include <OSD_Timer.hxx>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <Draw_Window.hxx> #include <Draw_Window.hxx>
#include <gp_Pnt2d.hxx> #include <gp_Pnt2d.hxx>

View File

@ -51,26 +51,7 @@ static clock_t CPU_CURRENT; // cpu time already used at last
#else /* _WIN32 */ #else /* _WIN32 */
#include <sys/resource.h> #include <sys/resource.h>
#include <signal.h>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#if defined(HAVE_TIME_H)
# include <time.h>
#endif
#ifdef HAVE_SIGNAL_H
# include <signal.h>
#endif
#ifdef HAVE_SYS_SIGNAL_H
# include <sys/signal.h>
#endif
#if defined (__hpux) || defined ( HPUX ) #if defined (__hpux) || defined ( HPUX )
#define RLIM_INFINITY 0x7fffffff #define RLIM_INFINITY 0x7fffffff

View File

@ -18,10 +18,6 @@
// Modif : DFO 05/11/96 // Modif : DFO 05/11/96
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <Draw.ixx> #include <Draw.ixx>
#include <Draw_Appli.hxx> #include <Draw_Appli.hxx>
@ -34,13 +30,10 @@
#include <Standard_Stream.hxx> #include <Standard_Stream.hxx>
#include <stdio.h> #include <stdio.h>
#ifdef WNT #ifdef _WIN32
extern Draw_Viewer dout; extern Draw_Viewer dout;
extern Standard_Boolean Draw_Batch; extern Standard_Boolean Draw_Batch;
#endif #endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
extern Standard_Boolean Draw_BlackBackGround; extern Standard_Boolean Draw_BlackBackGround;

View File

@ -29,14 +29,14 @@
#include <string.h> #include <string.h>
#include <tcl.h> #include <tcl.h>
#ifndef _WIN32
#include <unistd.h>
#endif
// for capturing of cout and cerr (dup(), dup2()) // for capturing of cout and cerr (dup(), dup2())
#ifdef _MSC_VER #ifdef _MSC_VER
#include <io.h> #include <io.h>
#endif #endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#if ! defined(STDOUT_FILENO) #if ! defined(STDOUT_FILENO)
#define STDOUT_FILENO fileno(stdout) #define STDOUT_FILENO fileno(stdout)

View File

@ -41,17 +41,7 @@
// - Standard_IMPOR is differently defined, // - Standard_IMPOR is differently defined,
// - Draw_Appli is differently declared. // - Draw_Appli is differently declared.
#ifdef _WIN32
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef WNT
#include <windows.h> /* SW_SHOW */ #include <windows.h> /* SW_SHOW */
#endif #endif

View File

@ -15,9 +15,6 @@
// commercial license or contractual agreement. // commercial license or contractual agreement.
#include <Draw.ixx> #include <Draw.ixx>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <Standard_Stream.hxx> #include <Standard_Stream.hxx>
#include <Standard_SStream.hxx> #include <Standard_SStream.hxx>
@ -36,12 +33,9 @@
#include <ios> #include <ios>
#ifdef WNT #ifdef _WIN32
extern Draw_Viewer dout; extern Draw_Viewer dout;
#endif #endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <tcl.h> #include <tcl.h>
#include <errno.h> #include <errno.h>

View File

@ -94,43 +94,9 @@ defaultPrompt:
#if !defined(_WIN32) && !defined(__WIN32__) #if !defined(_WIN32) && !defined(__WIN32__)
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <OSD_Timer.hxx> #include <OSD_Timer.hxx>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h>
#else
#include <sys/ioctl.h>
#endif
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <Draw_Window.hxx> #include <Draw_Window.hxx>
#include <unistd.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <stdio.h>
#if defined(__APPLE__) && !defined(MACOSX_USE_GLX) #if defined(__APPLE__) && !defined(MACOSX_USE_GLX)
// use forward declaration for small subset of used Tk functions // use forward declaration for small subset of used Tk functions

View File

@ -14,20 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef HAVE_IOS
# include <ios>
#elif defined(HAVE_IOS_H)
# include <ios.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <Standard_Stream.hxx> #include <Standard_Stream.hxx>
#include <Draw_Color.hxx> #include <Draw_Color.hxx>
@ -1741,7 +1727,7 @@ static void pntsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
{ {
Handle(DrawTrSurf_Point) Handle(DrawTrSurf_Point)
N = Handle(DrawTrSurf_Point)::DownCast(d); N = Handle(DrawTrSurf_Point)::DownCast(d);
#if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX) #if !defined(_WIN32) && !defined(__sgi) && !defined(IRIX)
ios::fmtflags F = OS.flags(); ios::fmtflags F = OS.flags();
OS.setf(ios::scientific,ios::floatfield); OS.setf(ios::scientific,ios::floatfield);
OS.precision(15); OS.precision(15);
@ -1758,7 +1744,7 @@ static void pntsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
OS << "0 "; OS << "0 ";
OS << P.X() << " " << P.Y() << "\n"; OS << P.X() << " " << P.Y() << "\n";
} }
#if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX) #if !defined(_WIN32) && !defined(__sgi) && !defined(IRIX)
OS.setf(F); OS.setf(F);
#else #else
OS.setf(form); OS.setf(form);
@ -1803,7 +1789,7 @@ static void triasave(const Handle(Draw_Drawable3D)&d, ostream& OS)
{ {
Handle(DrawTrSurf_Triangulation) Handle(DrawTrSurf_Triangulation)
T = Handle(DrawTrSurf_Triangulation)::DownCast(d); T = Handle(DrawTrSurf_Triangulation)::DownCast(d);
#if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX) #if !defined(_WIN32) && !defined(__sgi) && !defined(IRIX)
ios::fmtflags F = OS.flags(); ios::fmtflags F = OS.flags();
OS.setf(ios::scientific,ios::floatfield); OS.setf(ios::scientific,ios::floatfield);
OS.precision(15); OS.precision(15);
@ -1812,7 +1798,7 @@ static void triasave(const Handle(Draw_Drawable3D)&d, ostream& OS)
std::streamsize prec = OS.precision(15); std::streamsize prec = OS.precision(15);
#endif #endif
Poly::Write(T->Triangulation(),OS); Poly::Write(T->Triangulation(),OS);
#if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX) #if !defined(_WIN32) && !defined(__sgi) && !defined(IRIX)
OS.setf(F); OS.setf(F);
#else #else
OS.setf(form); OS.setf(form);
@ -1844,7 +1830,7 @@ static void poly3dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
{ {
Handle(DrawTrSurf_Polygon3D) Handle(DrawTrSurf_Polygon3D)
T = Handle(DrawTrSurf_Polygon3D)::DownCast(d); T = Handle(DrawTrSurf_Polygon3D)::DownCast(d);
#if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX) #if !defined(_WIN32) && !defined(__sgi) && !defined(IRIX)
ios::fmtflags F = OS.flags(); ios::fmtflags F = OS.flags();
OS.setf(ios::scientific,ios::floatfield); OS.setf(ios::scientific,ios::floatfield);
OS.precision(15); OS.precision(15);
@ -1853,7 +1839,7 @@ static void poly3dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
std::streamsize prec = OS.precision(15); std::streamsize prec = OS.precision(15);
#endif #endif
Poly::Write(T->Polygon3D(),OS); Poly::Write(T->Polygon3D(),OS);
#if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX) #if !defined(_WIN32) && !defined(__sgi) && !defined(IRIX)
OS.setf(F); OS.setf(F);
#else #else
OS.setf(form); OS.setf(form);
@ -1884,7 +1870,7 @@ static void poly2dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
{ {
Handle(DrawTrSurf_Polygon2D) Handle(DrawTrSurf_Polygon2D)
T = Handle(DrawTrSurf_Polygon2D)::DownCast(d); T = Handle(DrawTrSurf_Polygon2D)::DownCast(d);
#if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX) #if !defined(_WIN32) && !defined(__sgi) && !defined(IRIX)
ios::fmtflags F = OS.flags(); ios::fmtflags F = OS.flags();
OS.setf(ios::scientific, ios::floatfield); OS.setf(ios::scientific, ios::floatfield);
OS.precision(15); OS.precision(15);
@ -1893,7 +1879,7 @@ static void poly2dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
std::streamsize prec = OS.precision(15); std::streamsize prec = OS.precision(15);
#endif #endif
Poly::Write(T->Polygon2D(),OS); Poly::Write(T->Polygon2D(),OS);
#if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX) #if !defined(_WIN32) && !defined(__sgi) && !defined(IRIX)
OS.setf(F); OS.setf(F);
#else #else
OS.setf(form); OS.setf(form);

View File

@ -14,16 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef HAVE_IOS
# include <ios>
#elif defined(HAVE_IOS_H)
# include <ios.h>
#endif
#include <DrawTrSurf_Point.ixx> #include <DrawTrSurf_Point.ixx>
#include <Standard_Stream.hxx> #include <Standard_Stream.hxx>
@ -186,7 +176,7 @@ Handle(Draw_Drawable3D) DrawTrSurf_Point::Copy() const
void DrawTrSurf_Point::Dump(Standard_OStream& S) const void DrawTrSurf_Point::Dump(Standard_OStream& S) const
{ {
#if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX) #if !defined(_WIN32) && !defined(__sgi) && !defined(IRIX)
ios::fmtflags F = S.flags(); ios::fmtflags F = S.flags();
S.setf(ios::scientific,ios::floatfield); S.setf(ios::scientific,ios::floatfield);
S.precision(15); S.precision(15);
@ -198,7 +188,7 @@ void DrawTrSurf_Point::Dump(Standard_OStream& S) const
S << "Point : " << myPoint.X() << ", " << myPoint.Y() << ", " << myPoint.Z() <<endl; S << "Point : " << myPoint.X() << ", " << myPoint.Y() << ", " << myPoint.Z() <<endl;
else else
S << "Point 2d : " << myPoint.X() << ", " << myPoint.Y() <<endl; S << "Point 2d : " << myPoint.X() << ", " << myPoint.Y() <<endl;
#if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX) #if !defined(_WIN32) && !defined(__sgi) && !defined(IRIX)
S.setf(F); S.setf(F);
#else #else
S.setf(form); S.setf(form);

View File

@ -14,9 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <GeomliteTest.hxx> #include <GeomliteTest.hxx>
#include <DrawTrSurf.hxx> #include <DrawTrSurf.hxx>
#include <Draw.hxx> #include <Draw.hxx>
@ -86,13 +83,10 @@
//#ifdef WNT //#ifdef WNT
#include <stdio.h> #include <stdio.h>
#ifdef WNT #ifdef _WIN32
//#define strcasecmp strcmp Already defined //#define strcasecmp strcmp Already defined
Standard_IMPORT Draw_Viewer dout; Standard_IMPORT Draw_Viewer dout;
#endif #endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif

View File

@ -15,20 +15,6 @@
#ifndef STRUCTURE_PXX_INCLUDED #ifndef STRUCTURE_PXX_INCLUDED
#define STRUCTURE_PXX_INCLUDED #define STRUCTURE_PXX_INCLUDED
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef HAVE_LIMITS
# include <limits>
#elif defined (HAVE_LIMITS_H)
# include <limits.h>
#endif
#ifdef WNT
# include <limits>
#endif
// structure priority : range (do not change this range !) // structure priority : range (do not change this range !)
// call_togl_displaystructure, CALL_DEF_VIEW, MajView ... // call_togl_displaystructure, CALL_DEF_VIEW, MajView ...
#define Structure_MAX_PRIORITY 10 #define Structure_MAX_PRIORITY 10

View File

@ -13,10 +13,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef HAVE_FREEIMAGE #ifdef HAVE_FREEIMAGE
#include <FreeImage.h> #include <FreeImage.h>

View File

@ -16,10 +16,7 @@
#include <Standard_Stream.hxx> #include <Standard_Stream.hxx>
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#if HAVE_IEEEFP_H #if defined(isfinite)
# include <ieeefp.h>
#endif
#if !defined(HAVE_FINITE) && defined(isfinite)
# define finite isfinite # define finite isfinite
#endif #endif
@ -82,13 +79,8 @@ Standard_Boolean OSD::CStringToReal(const Standard_CString aString,
#else #else
# define SLEEP(NSEC) sleep(NSEC) # define SLEEP(NSEC) sleep(NSEC)
#endif #endif
#ifndef _WIN32
#ifdef HAVE_VALUES_H #include <unistd.h>
//# include <values.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif #endif
void OSD::SecSleep(const Standard_Integer aDelay) void OSD::SecSleep(const Standard_Integer aDelay)
@ -101,7 +93,7 @@ void OSD::SecSleep(const Standard_Integer aDelay)
//purpose : Cause the process to sleep during a amount of milliseconds //purpose : Cause the process to sleep during a amount of milliseconds
//======================================================================= //=======================================================================
#ifdef WNT #ifdef _WIN32
void OSD::MilliSecSleep(const Standard_Integer aDelay) void OSD::MilliSecSleep(const Standard_Integer aDelay)
{ {
@ -110,9 +102,7 @@ void OSD::MilliSecSleep(const Standard_Integer aDelay)
#else #else
#ifdef HAVE_SYS_TIME_H #include <sys/time.h>
# include <sys/time.h>
#endif
void OSD::MilliSecSleep(const Standard_Integer aDelay) void OSD::MilliSecSleep(const Standard_Integer aDelay)
{ {

View File

@ -23,21 +23,8 @@
//---------- Systemes autres que WNT : ---------------------------------- //---------- Systemes autres que WNT : ----------------------------------
#ifdef HAVE_CONFIG_H #include <sys/times.h>
# include <config.h> #include <unistd.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_TIMES_H
# include <sys/times.h>
#endif
#ifdef SOLARIS #ifdef SOLARIS
# include <sys/resource.h> # include <sys/resource.h>
@ -51,7 +38,7 @@
# define _sysconf sysconf # define _sysconf sysconf
#endif #endif
#if defined(HAVE_TIME_H) || defined(WNT) || defined(DECOSF1) #if defined(DECOSF1)
# include <time.h> # include <time.h>
#endif #endif
@ -59,12 +46,6 @@
# define CLK_TCK CLOCKS_PER_SEC # define CLK_TCK CLOCKS_PER_SEC
# endif # endif
#ifdef HAVE_LIMITS
# include <limits>
#elif defined (HAVE_LIMITS_H)
# include <limits.h>
#endif
#if (defined(__APPLE__)) #if (defined(__APPLE__))
#include <mach/task.h> #include <mach/task.h>
#include <mach/mach.h> #include <mach/mach.h>

View File

@ -12,39 +12,16 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifndef WNT #ifndef WNT
#include <OSD_Directory.ixx> #include <OSD_Directory.ixx>
#include <OSD_WhoAmI.hxx> #include <OSD_WhoAmI.hxx>
#include <OSD_Protection.hxx> #include <OSD_Protection.hxx>
#ifdef HAVE_SYS_TYPES_H #include <sys/stat.h>
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h> // For getwd()
#endif
#include <errno.h> #include <errno.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <unistd.h>
#ifdef HAVE_OSFCN_H
# include <osfcn.h>
#endif
const OSD_WhoAmI Iam = OSD_WDirectory; const OSD_WhoAmI Iam = OSD_WDirectory;

View File

@ -12,28 +12,14 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifndef WNT #ifndef WNT
#include <OSD_DirectoryIterator.ixx> #include <OSD_DirectoryIterator.ixx>
#include <OSD_WhoAmI.hxx> #include <OSD_WhoAmI.hxx>
#include <stdio.h> #include <stdio.h>
#include <dirent.h>
#ifdef HAVE_DIRENT_H #include <sys/stat.h>
# include <dirent.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
//const OSD_WhoAmI Iam = OSD_WDirectoryIterator; //const OSD_WhoAmI Iam = OSD_WDirectoryIterator;

View File

@ -12,10 +12,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifndef WNT #ifndef WNT
#include <OSD_Disk.ixx> #include <OSD_Disk.ixx>
@ -27,17 +23,7 @@ const OSD_WhoAmI Iam = OSD_WDisk;
extern "C" { extern "C" {
#endif #endif
//#include <sys/types.h> #include <sys/statvfs.h>
#if defined(HAVE_STATVFS) && defined(HAVE_SYS_STATVFS_H)
# include <sys/statvfs.h>
#elif defined(HAVE_STATFS) && defined(HAVE_SYS_VFS_H)
// Note: we want to use the "vfs" method on HP, not elsewhere
# include <sys/vfs.h>
#elif defined(HAVE_STATFS)
# include <sys/param.h>
# include <sys/mount.h>
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }
@ -45,9 +31,7 @@ extern "C" {
#include <errno.h> #include <errno.h>
#if defined(HAVE_STATVFS)
extern "C" {int statvfs(const char *, struct statvfs *); } extern "C" {int statvfs(const char *, struct statvfs *); }
#endif
OSD_Disk::OSD_Disk() : myQuotaSize(0) {} OSD_Disk::OSD_Disk() : myQuotaSize(0) {}
@ -76,18 +60,6 @@ OSD_Path OSD_Disk::Name()const{
Standard_Integer OSD_Disk::DiskSize(){ Standard_Integer OSD_Disk::DiskSize(){
#if !defined(HAVE_STATVFS)
struct statfs buffer;
if ( statfs (DiskName.ToCString(),&buffer) == 0 ){
long BSize512 = buffer.f_bsize / 512 ;
return buffer.f_blocks * BSize512 ;
}
else {
myError.SetValue(errno, Iam, "OSD_Disk: statfs failed.");
#else
struct statvfs buffer; struct statvfs buffer;
if ( statvfs(DiskName.ToCString(),&buffer) == 0 ){ if ( statvfs(DiskName.ToCString(),&buffer) == 0 ){
@ -96,28 +68,10 @@ struct statvfs buffer;
} }
else { else {
myError.SetValue(errno, Iam, "OSD_Disk: statvfs failed."); myError.SetValue(errno, Iam, "OSD_Disk: statvfs failed.");
#endif
return 0; return 0;
} }
} }
#if !defined(HAVE_STATVFS)
Standard_Integer OSD_Disk::DiskFree(){
struct statfs buffer;
if ( statfs (DiskName.ToCString(),&buffer) == 0 ){
long BSize512 = buffer.f_bsize / 512 ;
return buffer.f_bavail * BSize512 ;
}
else {
myError.SetValue(errno, Iam, "OSD_Disk: statfs failed.");
return 0;
}
}
#else
Standard_Integer OSD_Disk::DiskFree(){ Standard_Integer OSD_Disk::DiskFree(){
struct statvfs buffer; struct statvfs buffer;
@ -131,8 +85,6 @@ struct statvfs buffer;
} }
} }
#endif
Standard_Integer OSD_Disk::DiskQuota(){ Standard_Integer OSD_Disk::DiskQuota(){
//@@@ A faire //@@@ A faire
return 0; return 0;

View File

@ -12,10 +12,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
//------------------------------------------------------------------------ //------------------------------------------------------------------------
// UNIX Part // UNIX Part
//------------------------------------------------------------------------ //------------------------------------------------------------------------
@ -39,22 +35,11 @@ const OSD_WhoAmI Iam = OSD_WFile;
#endif #endif
#include <errno.h> #include <errno.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h>
#ifdef HAVE_SYS_TYPES_H #include <sys/stat.h>
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#define NEWLINE '\10'; #define NEWLINE '\10';

View File

@ -12,10 +12,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifndef WNT #ifndef WNT
#include <OSD_FileIterator.ixx> #include <OSD_FileIterator.ixx>
@ -25,28 +21,11 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#ifdef HAVE_DIRENT_H
# include <dirent.h> # include <dirent.h>
# define NAMLEN(dirent) strlen((dirent)->d_name) # define NAMLEN(dirent) strlen((dirent)->d_name)
# ifdef VMS # ifdef VMS
extern char *vmsify PARAMS ((char *name, int type)); extern char *vmsify PARAMS ((char *name, int type));
# endif # endif
#else
# define dirent direct
# define NAMLEN(dirent) (dirent)->d_namlen
# ifdef HAVE_SYS_NDIR_H
# include <sys/ndir.h>
# endif
# ifdef HAVE_SYS_DIR_H
# include <sys/dir.h>
# endif
# ifdef HAVE_NDIR_H
# include <ndir.h>
# endif
# ifdef HAVE_VMSDIR_H
# include "vmsdir.h"
# endif /* HAVE_VMSDIR_H */
#endif
/* In GNU systems, <dirent.h> defines this macro for us. */ /* In GNU systems, <dirent.h> defines this macro for us. */
#ifdef _D_NAMLEN #ifdef _D_NAMLEN

View File

@ -12,19 +12,13 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifndef _WIN32 #ifndef _WIN32
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
//------------------- Linux Sources of OSD_FileNode -------------------------- //------------------- Linux Sources of OSD_FileNode --------------------------
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
#include <unistd.h>
#include <errno.h> #include <errno.h>
#include <string.h>
#include <Standard_ProgramError.hxx> #include <Standard_ProgramError.hxx>
#include <OSD_OSDError.hxx> #include <OSD_OSDError.hxx>
@ -32,34 +26,13 @@
#include <OSD_WhoAmI.hxx> #include <OSD_WhoAmI.hxx>
#include <OSD_FileNode.ixx> #include <OSD_FileNode.ixx>
#if!defined(TM_IN_SYS_TIME) && defined(HAVE_TIME_H)
# include <time.h>
#elif HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> // for "stat"
#endif
#include <stdlib.h> // For "system" #include <stdlib.h> // For "system"
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <unistd.h>
#ifdef HAVE_OSFCN_H #include <sys/stat.h>
# include <osfcn.h>
#endif
const OSD_WhoAmI Iam = OSD_WFileNode; const OSD_WhoAmI Iam = OSD_WFileNode;

View File

@ -12,10 +12,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifndef WNT #ifndef WNT
#include <Standard_NullObject.hxx> #include <Standard_NullObject.hxx>
@ -27,20 +23,11 @@ const OSD_WhoAmI Iam = OSD_WHost;
#include <errno.h> #include <errno.h>
#ifdef HAVE_SYS_UTSNAME_H #include <sys/utsname.h> // For 'uname'
# include <sys/utsname.h> // For 'uname' #include <netdb.h> // This is for 'gethostbyname'
#endif #include <unistd.h>
#ifdef HAVE_NETDB_H
# include <netdb.h> // This is for 'gethostbyname'
#endif
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h>
#endif
#if defined(__osf__) || defined(DECOSF1) #if defined(__osf__) || defined(DECOSF1)
#include <sys/types.h> #include <sys/types.h>
#include <sys/sysinfo.h> // For 'getsysinfo' #include <sys/sysinfo.h> // For 'getsysinfo'
@ -52,26 +39,6 @@ extern "C" {
} }
#endif #endif
#ifdef HAVE_SYSENT_H
# include <sysent.h> // for 'gethostname'
#endif
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_SYS_UNISTD_H
# include <sys/unistd.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_SYSTEMINFO_H
# include <sys/systeminfo.h>
#endif
extern "C" {int sysinfo(int, char *, long);} extern "C" {int sysinfo(int, char *, long);}
@ -84,22 +51,11 @@ OSD_Host::OSD_Host(){}
TCollection_AsciiString OSD_Host::SystemVersion(){ TCollection_AsciiString OSD_Host::SystemVersion(){
struct utsname info; struct utsname info;
TCollection_AsciiString result; TCollection_AsciiString result;
#ifdef HAVE_SYS_SYSTEMINFO_H
char buf[100];
#endif
uname (&info); uname (&info);
result = info.sysname; result = info.sysname;
result += " "; result += " ";
result += info.release; result += info.release;
#ifdef HAVE_SYS_SYSTEMINFO_H
result += " ";
sysinfo(SI_ARCHITECTURE,buf,99);
result += buf;
result += " ";
sysinfo(SI_HW_PROVIDER,buf,99);
result += buf;
#endif
return(result); return(result);
} }

View File

@ -12,10 +12,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifndef WNT #ifndef WNT
#include <Standard_NumericError.hxx> #include <Standard_NumericError.hxx>
@ -25,10 +21,6 @@
#include <OSD_Path.ixx> #include <OSD_Path.ixx>
#include <OSD_WhoAmI.hxx> #include <OSD_WhoAmI.hxx>
#ifdef HAVE_SYS_UTSNAME_H
//# include <sys/utsname.h>
#endif
static OSD_SysType whereAmI(){ static OSD_SysType whereAmI(){
#if defined(__digital__) || defined(__FreeBSD__) || defined(SUNOS) || defined(__APPLE__) #if defined(__digital__) || defined(__FreeBSD__) || defined(SUNOS) || defined(__APPLE__)
return OSD_UnixBSD; return OSD_UnixBSD;

View File

@ -12,10 +12,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifndef WNT #ifndef WNT
#include <OSD_Process.ixx> #include <OSD_Process.ixx>
@ -25,28 +21,11 @@
const OSD_WhoAmI Iam = OSD_WProcess; const OSD_WhoAmI Iam = OSD_WProcess;
#include <errno.h> #include <errno.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <sys/param.h>
#ifdef HAVE_SYS_PARAM_H #include <sys/time.h>
# include <sys/param.h> #include <pwd.h> // For command getpwuid
#endif #include <unistd.h>
#if defined(HAVE_TIME_H) || defined(WNT)
# include <time.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_PWD_H
# include <pwd.h> // For command getpwuid
#endif
OSD_Process::OSD_Process(){ OSD_Process::OSD_Process(){
} }

View File

@ -12,10 +12,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifndef WNT #ifndef WNT
#include <OSD_LoadMode.hxx> #include <OSD_LoadMode.hxx>
@ -24,10 +20,6 @@
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h>
#endif
#ifdef __some_crappy_system__ #ifdef __some_crappy_system__
/* /*
* Values for 'mode' argument in dlopen(). * Values for 'mode' argument in dlopen().
@ -49,13 +41,7 @@ extern "C" {int dlclose ( void *handle );}
extern "C" {void *dlerror (void);} extern "C" {void *dlerror (void);}
#endif #endif
#ifdef HAVE_DLFCN_H #include <dlfcn.h>
# include <dlfcn.h>
#endif
#ifdef HAVE_DL_H
# include <dl.h>
#endif
extern "C" {size_t strlen (const char* s );} extern "C" {size_t strlen (const char* s );}
@ -125,25 +111,12 @@ void OSD_SharedLibrary::SetName(const Standard_CString aName) {
// //
// ---------------------------------------------------------------- // ----------------------------------------------------------------
Standard_Boolean OSD_SharedLibrary::DlOpen(const OSD_LoadMode aMode ) { Standard_Boolean OSD_SharedLibrary::DlOpen(const OSD_LoadMode aMode ) {
#ifdef HAVE_DL_H
if (aMode == OSD_RTLD_LAZY){
// myHandle = cxxshl_load(myName, BIND_FIRST | BIND_TOGETHER | BIND_DEFERRED | BIND_VERBOSE | DYNAMIC_PATH, 0L);
myHandle = shl_load(myName, BIND_FIRST | BIND_TOGETHER | BIND_DEFERRED | BIND_VERBOSE | DYNAMIC_PATH, 0L);
}
else if (aMode == OSD_RTLD_NOW){
// myHandle = cxxshl_load(myName, BIND_FIRST | BIND_TOGETHER | BIND_IMMEDIATE | BIND_VERBOSE | DYNAMIC_PATH, 0L);
myHandle = shl_load(myName, BIND_FIRST | BIND_TOGETHER | BIND_IMMEDIATE | BIND_VERBOSE | DYNAMIC_PATH, 0L);
}
#else
if (aMode == OSD_RTLD_LAZY){ if (aMode == OSD_RTLD_LAZY){
myHandle = dlopen (myName,RTLD_LAZY); myHandle = dlopen (myName,RTLD_LAZY);
} }
else if (aMode == OSD_RTLD_NOW){ else if (aMode == OSD_RTLD_NOW){
myHandle = dlopen (myName,RTLD_NOW); myHandle = dlopen (myName,RTLD_NOW);
} }
#endif
if (!BAD(myHandle)){ if (!BAD(myHandle)){
return Standard_True; return Standard_True;
@ -161,8 +134,6 @@ else {
// //
// ---------------------------------------------------------------- // ----------------------------------------------------------------
OSD_Function OSD_SharedLibrary::DlSymb(const Standard_CString aName )const{ OSD_Function OSD_SharedLibrary::DlSymb(const Standard_CString aName )const{
#ifndef HAVE_DL_H
void (*fp)(); void (*fp)();
fp = (void (*)()) dlsym (myHandle,aName); fp = (void (*)()) dlsym (myHandle,aName);
if (!BAD(fp)){ if (!BAD(fp)){
@ -171,20 +142,6 @@ if (!BAD(fp)){
else { else {
return (OSD_Function)NULL; return (OSD_Function)NULL;
} }
#else
void *adr_get = NULL;
// shl_t handlesym=0 ;
errno = 0 ;
// if ( shl_findsym( &handlesym,aName,TYPE_PROCEDURE,&adr_get) == -1 ) {
if ( shl_findsym((shl_t *)&myHandle,aName,TYPE_PROCEDURE,&adr_get) == -1 ) {
if ( errno != 0 )
perror("OSD_SharedLibrary : shl_findsym perror : ") ;
return (OSD_Function)NULL;
}
else return (OSD_Function) adr_get;
#endif
} }
// ---------------------------------------------------------------- // ----------------------------------------------------------------
// //
@ -195,13 +152,7 @@ else {
// //
// ---------------------------------------------------------------- // ----------------------------------------------------------------
void OSD_SharedLibrary::DlClose()const{ void OSD_SharedLibrary::DlClose()const{
#ifndef HAVE_DL_H
dlclose(myHandle); dlclose(myHandle);
#else
shl_unload((shl_t)myHandle);
#endif
} }
// ---------------------------------------------------------------- // ----------------------------------------------------------------
// //
@ -210,12 +161,7 @@ void OSD_SharedLibrary::DlClose()const{
// //
// ---------------------------------------------------------------- // ----------------------------------------------------------------
Standard_CString OSD_SharedLibrary::DlError()const{ Standard_CString OSD_SharedLibrary::DlError()const{
#ifndef HAVE_DL_H
return (char*) dlerror(); return (char*) dlerror();
#else
perror("shl_load, shl_findsym, or shl_unload : perror : ") ;
return (char*) errno;
#endif
} }
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Destroy // Destroy

View File

@ -19,19 +19,13 @@
// system call gettimeofday. This function is portable and give us // system call gettimeofday. This function is portable and give us
// elapsed time in seconds and microseconds. // elapsed time in seconds and microseconds.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <OSD_Timer.ixx> #include <OSD_Timer.ixx>
#ifndef WNT #ifndef WNT
//---------- No Windows NT Systems ---------------------------------- //---------- No Windows NT Systems ----------------------------------
#ifdef HAVE_SYS_TIME_H #include <sys/time.h>
# include <sys/time.h>
#endif
//======================================================================= //=======================================================================
//function : GetWallClockTime //function : GetWallClockTime

View File

@ -17,10 +17,6 @@
//---------- All Systems except Windows NT : ---------------------------------- //---------- All Systems except Windows NT : ----------------------------------
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
# include <stdio.h> # include <stdio.h>
#include <OSD_WhoAmI.hxx> #include <OSD_WhoAmI.hxx>
@ -40,16 +36,7 @@
#include <Standard_ErrorHandler.hxx> #include <Standard_ErrorHandler.hxx>
// POSIX threads // POSIX threads
#ifdef HAVE_PTHREAD_H #include <pthread.h>
#include <pthread.h>
#endif
#ifdef HAVE_PTHREAD_H
static pthread_t getOCCThread () {
static pthread_t TheOCCThread = 0;
return TheOCCThread ;
}
#endif
#ifdef linux #ifdef linux
#include <fenv.h> #include <fenv.h>
@ -64,38 +51,10 @@ static Standard_Boolean fCtrlBrk;
typedef void (ACT_SIGIO_HANDLER)(void) ; typedef void (ACT_SIGIO_HANDLER)(void) ;
ACT_SIGIO_HANDLER *ADR_ACT_SIGIO_HANDLER = NULL ; ACT_SIGIO_HANDLER *ADR_ACT_SIGIO_HANDLER = NULL ;
#if defined(HAVE_FLOATINGPOINT_H) && defined(HAVE_SYS_MACHSIG_H)
# include <floatingpoint.h>
# include <sys/machsig.h>
// JPT : Difference between SUN/SUNOS and SUN/SOLARIS
# define FPE_FLTDIV_TRAP FPE_FLTDIV
# define FPE_INTDIV_TRAP FPE_INTDIV
# define FPE_FLTOVF_TRAP FPE_FLTOVF
# define FPE_INTOVF_TRAP FPE_INTOVF
# define FPE_FLTUND_TRAP FPE_FLTUND
#define FPE_FLTRES_TRAP FPE_FLTRES /* floating point inexact result */
#define FPE_FLTINV_TRAP FPE_FLTINV /* invalid floating point operation */
#define FPE_FLTSUB_TRAP FPE_FLTSUB /* subscript out of range */
extern "C" {int ieee_handler(char *,char *, sigfpe_handler_type&);}
# include <stdlib.h>
#endif
#ifdef DECOSF1 #ifdef DECOSF1
typedef void (* SIG_PFV) (int); typedef void (* SIG_PFV) (int);
#endif #endif
#if defined(HAVE_SIGFPE_H) && defined(HAVE_SYS_SIGINFO_H)
# include <sigfpe.h>
# include <sys/siginfo.h>
# define FPE_FLTDIV_TRAP FPE_FLTDIV
# define FPE_INTDIV_TRAP FPE_INTDIV
# define FPE_FLTOVF_TRAP FPE_FLTOVF
# define FPE_INTOVF_TRAP FPE_INTOVF
# define FPE_FLTUND_TRAP FPE_FLTUND
#endif
#ifdef __GNUC__ #ifdef __GNUC__
# include <stdlib.h> # include <stdlib.h>
# include <stdio.h> # include <stdio.h>
@ -108,13 +67,8 @@ typedef void (* SIG_PFV) (int);
#endif #endif
typedef void (* SIG_PFV) (int); typedef void (* SIG_PFV) (int);
#ifdef HAVE_SIGNAL_H #include <signal.h>
# include <signal.h> #include <sys/signal.h>
#endif
#ifdef HAVE_SYS_SIGNAL_H
# include <sys/signal.h>
#endif
#if defined(HAVE_PTHREAD_H) && defined(NO_CXX_EXCEPTION) #if defined(HAVE_PTHREAD_H) && defined(NO_CXX_EXCEPTION)
//============================================================================ //============================================================================

View File

@ -24,10 +24,7 @@
#include <InterfaceGraphic_Aspect.hxx> #include <InterfaceGraphic_Aspect.hxx>
#include <InterfaceGraphic_Visual3d.hxx> #include <InterfaceGraphic_Visual3d.hxx>
#ifdef HAVE_CONFIG_H #ifndef _WIN32
#include <config.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h> #include <string.h>
#endif #endif

View File

@ -13,10 +13,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <OpenGl_GraphicDriver.hxx> #include <OpenGl_GraphicDriver.hxx>
#include <OpenGl_Context.hxx> #include <OpenGl_Context.hxx>
#include <OpenGl_Flipper.hxx> #include <OpenGl_Flipper.hxx>

View File

@ -17,10 +17,6 @@
#include <Standard_CLocaleSentry.hxx> #include <Standard_CLocaleSentry.hxx>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef HAVE_GL2PS #ifdef HAVE_GL2PS
#include <gl2ps.h> #include <gl2ps.h>
#endif #endif

View File

@ -18,10 +18,6 @@
#include <OpenGl_LineAttributes.hxx> #include <OpenGl_LineAttributes.hxx>
#include <OpenGl_Context.hxx> #include <OpenGl_Context.hxx>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef HAVE_GL2PS #ifdef HAVE_GL2PS
#include <gl2ps.h> #include <gl2ps.h>
#endif #endif

View File

@ -25,10 +25,6 @@
#include <Font_FontMgr.hxx> #include <Font_FontMgr.hxx>
#include <TCollection_HAsciiString.hxx> #include <TCollection_HAsciiString.hxx>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef HAVE_GL2PS #ifdef HAVE_GL2PS
#include <gl2ps.h> #include <gl2ps.h>
#endif #endif

View File

@ -13,10 +13,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <OpenGl_GlCore15.hxx> #include <OpenGl_GlCore15.hxx>
#include <InterfaceGraphic.hxx> #include <InterfaceGraphic.hxx>

View File

@ -19,10 +19,6 @@
#include <TColStd_Array2OfReal.hxx> #include <TColStd_Array2OfReal.hxx>
#include <OpenGl_telem_util.hxx> #include <OpenGl_telem_util.hxx>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#if (defined(_WIN32) || defined(__WIN32__)) && defined(HAVE_FREEIMAGE) #if (defined(_WIN32) || defined(__WIN32__)) && defined(HAVE_FREEIMAGE)
#include <NCollection_Handle.hxx> #include <NCollection_Handle.hxx>
#include <FreeImagePlus.h> #include <FreeImagePlus.h>

View File

@ -25,10 +25,6 @@
#include <OpenGl_ShaderManager.hxx> #include <OpenGl_ShaderManager.hxx>
#include <OpenGl_telem_util.hxx> #include <OpenGl_telem_util.hxx>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
/* OCC22218 NOTE: project dependency on gl2ps is specified by macro */ /* OCC22218 NOTE: project dependency on gl2ps is specified by macro */
#ifdef HAVE_GL2PS #ifdef HAVE_GL2PS
#include <gl2ps.h> #include <gl2ps.h>

View File

@ -19,19 +19,7 @@
#include <Standard_NegativeValue.hxx> #include <Standard_NegativeValue.hxx>
#include <Standard_OutOfRange.hxx> #include <Standard_OutOfRange.hxx>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#if defined(HAVE_STRING_H)
# include <string.h>
#endif
#include <stdio.h> #include <stdio.h>
#if defined(HAVE_STDLIB_H)
# include <stdlib.h>
#endif
#if defined(HAVE_LIBC_H)
# include <libc.h>
#endif
//------------------------------------ //------------------------------------
// Conversion functions and variables // Conversion functions and variables

View File

@ -19,19 +19,7 @@
#include <Standard_NegativeValue.hxx> #include <Standard_NegativeValue.hxx>
#include <Standard_OutOfRange.hxx> #include <Standard_OutOfRange.hxx>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#if defined(HAVE_STRING_H)
# include <string.h>
#endif
#include <stdio.h> #include <stdio.h>
#if defined(HAVE_STDLIB_H)
#include <stdlib.h>
#endif
#if defined(HAVE_LIBC_H)
# include <libc.h>
#endif
//------------------------------------------------------------------------ //------------------------------------------------------------------------
// Create from an ExtendedString of TCollection // Create from an ExtendedString of TCollection

View File

@ -14,9 +14,6 @@
// commercial license or contractual agreement. // commercial license or contractual agreement.
#include <QABugs.hxx> #include <QABugs.hxx>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <Draw.hxx> #include <Draw.hxx>
#include <Draw_Interpretor.hxx> #include <Draw_Interpretor.hxx>
#include <TopLoc_Location.hxx> #include <TopLoc_Location.hxx>

View File

@ -14,28 +14,15 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <STEPConstruct_AP203Context.ixx> #include <STEPConstruct_AP203Context.ixx>
#ifdef HAVE_PWD_H #ifndef _WIN32
# include <pwd.h> # include <pwd.h>
#endif
#ifdef HAVE_NETDB_H
# include <netdb.h> # include <netdb.h>
#endif #else
#ifdef WNT
# include <winsock2.h> # include <winsock2.h>
#endif #endif
#if defined(HAVE_TIME_H) || defined(WNT)
# include <time.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <OSD_Process.hxx> #include <OSD_Process.hxx>

View File

@ -13,10 +13,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <Standard_CLocaleSentry.hxx> #include <Standard_CLocaleSentry.hxx>
#include <Standard_TypeDef.hxx> #include <Standard_TypeDef.hxx>

View File

@ -12,10 +12,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <Standard_ExtString.hxx> #include <Standard_ExtString.hxx>
#include <Standard_Type.hxx> #include <Standard_Type.hxx>
#include <Standard_OStream.hxx> #include <Standard_OStream.hxx>

View File

@ -16,37 +16,15 @@
#include <Standard_MMgrOpt.hxx> #include <Standard_MMgrOpt.hxx>
#include <Standard_OutOfMemory.hxx> #include <Standard_OutOfMemory.hxx>
#include <Standard_Assert.hxx> #include <Standard_Assert.hxx>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_STRING_H #ifdef _WIN32
# include <string.h> # include <windows.h>
#endif
#ifndef WNT
# include <stdlib.h>
# include <errno.h>
#endif
#ifdef WNT
#include <windows.h>
#else #else
# ifdef HAVE_UNISTD_H # include <sys/mman.h> /* mmap() */
# include <unistd.h>
# endif
# ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h> /* mmap() */
# endif
#endif #endif
#ifdef HAVE_MALLOC_H
# include <malloc.h>
#endif
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
// //
#if defined (__sun) || defined(SOLARIS) #if defined (__sun) || defined(SOLARIS)

View File

@ -19,10 +19,6 @@
#ifndef _Standard_Macro_HeaderFile #ifndef _Standard_Macro_HeaderFile
# define _Standard_Macro_HeaderFile # define _Standard_Macro_HeaderFile
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif /* HAVE_CONFIG_H */
// Standard OCC macros: Handle(), STANDARD_TYPE() // Standard OCC macros: Handle(), STANDARD_TYPE()
# define Handle(ClassName) Handle_##ClassName # define Handle(ClassName) Handle_##ClassName
# define STANDARD_TYPE(aType) aType##_Type_() # define STANDARD_TYPE(aType) aType##_Type_()

View File

@ -12,10 +12,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <Standard_Type.ixx> #include <Standard_Type.ixx>
#include <Standard_Persistent.hxx> #include <Standard_Persistent.hxx>

View File

@ -21,23 +21,10 @@
#error "Wrong compiler options has been detected. Add /DWNT option for proper compilation!!!!!" #error "Wrong compiler options has been detected. Add /DWNT option for proper compilation!!!!!"
#endif #endif
#ifndef WNT #ifdef _WIN32
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef HAVE_LIMITS
# include <limits> # include <limits>
#elif defined (HAVE_LIMITS_H)
# include <limits.h>
#else #else
#error "check config.h file or compilation options: either HAVE_LIMITS or HAVE_LIMITS_H should be defined" # include <limits.h>
#endif
#endif
#ifdef WNT
# include <limits>
#endif #endif
#if defined (__hpux) || defined (HPUX) #if defined (__hpux) || defined (HPUX)

View File

@ -16,7 +16,7 @@
#include "stdio.h" #include "stdio.h"
#include "string.h" #include "string.h"
#include "stdlib.h" #include "stdlib.h"
#if defined(HAVE_MALLOC_H) #if !defined(_WIN32)
#include "malloc.h" #include "malloc.h"
#endif #endif
#include "recfile.ph" #include "recfile.ph"

View File

@ -37,18 +37,6 @@
#include <Storage_StreamExtCharParityError.hxx> #include <Storage_StreamExtCharParityError.hxx>
#include <Standard_ErrorHandler.hxx> #include <Standard_ErrorHandler.hxx>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#if defined(HAVE_TIME_H) || defined(WNT)
# include <time.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <locale.h> #include <locale.h>
#include <stdio.h> #include <stdio.h>

View File

@ -14,9 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <TCollection_BasicMap.ixx> #include <TCollection_BasicMap.ixx>
#include <TCollection.hxx> #include <TCollection.hxx>
#include <TCollection_BasicMapIterator.hxx> #include <TCollection_BasicMapIterator.hxx>

View File

@ -14,9 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <TestTopOpe.ixx> #include <TestTopOpe.ixx>
#include <TestTopOpe_BOOP.hxx> #include <TestTopOpe_BOOP.hxx>
@ -26,9 +23,6 @@
#include <TColStd_HArray1OfBoolean.hxx> #include <TColStd_HArray1OfBoolean.hxx>
#include <Draw.hxx> #include <Draw.hxx>
#include <DBRep.hxx> #include <DBRep.hxx>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
extern void suppressarg(Standard_Integer& na,const char** a,const Standard_Integer d); extern void suppressarg(Standard_Integer& na,const char** a,const Standard_Integer d);
#ifdef DEB #ifdef DEB

View File

@ -14,9 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <TestTopOpe.hxx> #include <TestTopOpe.hxx>
#include <TestTopOpe_HDSDisplayer.hxx> #include <TestTopOpe_HDSDisplayer.hxx>
#include <TestTopOpeDraw_DrawableSHA.hxx> #include <TestTopOpeDraw_DrawableSHA.hxx>
@ -55,10 +52,6 @@
#include <Draw_Interpretor.hxx> #include <Draw_Interpretor.hxx>
#include <DrawTrSurf.hxx> #include <DrawTrSurf.hxx>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
class TSEEpar { class TSEEpar {
public: public:
TSEEpar(const TCollection_AsciiString& s) { set(s); } TSEEpar(const TCollection_AsciiString& s) { set(s); }

View File

@ -14,9 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <TestTopOpe.ixx> #include <TestTopOpe.ixx>
#include <DBRep.hxx> #include <DBRep.hxx>
@ -40,12 +37,9 @@
#include <BRep_Tool.hxx> #include <BRep_Tool.hxx>
#include <Precision.hxx> #include <Precision.hxx>
#ifdef WNT #ifdef _WIN32
Standard_IMPORT Draw_Viewer dout; Standard_IMPORT Draw_Viewer dout;
#endif #endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
//======================================================================= //=======================================================================
// bounds S xmin ymin zmin zmax ymax zmax // bounds S xmin ymin zmin zmax ymax zmax

View File

@ -14,14 +14,8 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <TestTopOpe_VarsTopo.hxx> #include <TestTopOpe_VarsTopo.hxx>
#include <TopOpeBRepTool.hxx> #include <TopOpeBRepTool.hxx>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
VarsTopo::VarsTopo() : mytolarc(0.), mytoltan(0.) VarsTopo::VarsTopo() : mytolarc(0.), mytoltan(0.)
{ {

View File

@ -14,9 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <TestTopOpeDraw.hxx> #include <TestTopOpeDraw.hxx>
#include <TestTopOpeDraw_Displayer.hxx> #include <TestTopOpeDraw_Displayer.hxx>
#include <TestTopOpeDraw_TTOT.hxx> #include <TestTopOpeDraw_TTOT.hxx>
@ -27,9 +24,6 @@
#include <Draw_Appli.hxx> #include <Draw_Appli.hxx>
#include <TopOpeBRepTool_define.hxx> #include <TopOpeBRepTool_define.hxx>
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// 0 = testtopopedraw_cdinp // 0 = testtopopedraw_cdinp

View File

@ -14,16 +14,10 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <TestTopOpeDraw_TTOT.hxx> #include <TestTopOpeDraw_TTOT.hxx>
#include <GeomAdaptor_Curve.hxx> #include <GeomAdaptor_Curve.hxx>
#include <GeomAdaptor_Surface.hxx> #include <GeomAdaptor_Surface.hxx>
#include <BRep_Tool.hxx> #include <BRep_Tool.hxx>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
//======================================================================= //=======================================================================
//function : ShapeEnumToString //function : ShapeEnumToString

View File

@ -14,19 +14,12 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <TestTopOpeTools.hxx> #include <TestTopOpeTools.hxx>
#include <TestTopOpeTools_Trace.hxx> #include <TestTopOpeTools_Trace.hxx>
#include <Draw_Interpretor.hxx> #include <Draw_Interpretor.hxx>
#include <Draw_Appli.hxx> #include <Draw_Appli.hxx>
#include <TopOpeBRepTool_define.hxx> #include <TopOpeBRepTool_define.hxx>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef DEB #ifdef DEB
TestTopOpeTools_Trace theTrace(100,"trace"); TestTopOpeTools_Trace theTrace(100,"trace");
TestTopOpeTools_Trace theContext(100,"context"); TestTopOpeTools_Trace theContext(100,"context");

View File

@ -14,11 +14,7 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H #ifndef _WIN32
# include <config.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h> # include <strings.h>
#endif #endif

View File

@ -14,9 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <TopOpeBRepBuild_Builder.ixx> #include <TopOpeBRepBuild_Builder.ixx>
#include <TopOpeBRepBuild_define.hxx> #include <TopOpeBRepBuild_define.hxx>
#include <stdio.h> #include <stdio.h>
@ -63,9 +60,6 @@
#include <TopOpeBRepBuild_WireEdgeSet.hxx> #include <TopOpeBRepBuild_WireEdgeSet.hxx>
#ifdef DEB #ifdef DEB
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
extern Standard_Boolean TopOpeBRepDS_GettraceSPSX(const Standard_Integer); extern Standard_Boolean TopOpeBRepDS_GettraceSPSX(const Standard_Integer);
extern Standard_Boolean TopOpeBRepDS_GettraceSPSXX(const Standard_Integer,const Standard_Integer); extern Standard_Boolean TopOpeBRepDS_GettraceSPSXX(const Standard_Integer,const Standard_Integer);
static TCollection_AsciiString PRODINS("dins "); static TCollection_AsciiString PRODINS("dins ");

View File

@ -19,19 +19,8 @@
#include <Standard_Stream.hxx> #include <Standard_Stream.hxx>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_STDLIB_H #include <sys/stat.h>
# include <stdlib.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if defined (HAVE_SYS_STAT_H) || defined(WNT)
# include <sys/stat.h>
#endif
#include <Units_Token.hxx> #include <Units_Token.hxx>
#include <Units_TokensSequence.hxx> #include <Units_TokensSequence.hxx>

View File

@ -58,13 +58,7 @@
#include <Prs3d_IsoAspect.hxx> #include <Prs3d_IsoAspect.hxx>
#include <TopTools_MapOfShape.hxx> #include <TopTools_MapOfShape.hxx>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <Draw_Interpretor.hxx> #include <Draw_Interpretor.hxx>
#include <TCollection_AsciiString.hxx> #include <TCollection_AsciiString.hxx>

View File

@ -14,12 +14,7 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <ViewerTest.hxx> #include <ViewerTest.hxx>
#include <string.h>
#include <BRepTest.hxx> #include <BRepTest.hxx>
#include <TColgp_Array1OfPnt2d.hxx> #include <TColgp_Array1OfPnt2d.hxx>
#include <DBRep.hxx> #include <DBRep.hxx>
@ -55,12 +50,9 @@
#include <AIS_InteractiveObject.hxx> #include <AIS_InteractiveObject.hxx>
#include <AIS_Shape.hxx> #include <AIS_Shape.hxx>
#ifdef HAVE_STRINGS_H #ifdef _WIN32
# include <strings.h>
#endif
#ifdef WNT
//#define strcasecmp strcmp Already defined in Standard //#define strcasecmp strcmp Already defined in Standard
#include <stdio.h> # include <stdio.h>
#endif #endif
extern Handle(AIS_Shape) GetAISShapeFromName(const char* name); extern Handle(AIS_Shape) GetAISShapeFromName(const char* name);

View File

@ -14,14 +14,8 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <ViewerTest.hxx> #include <ViewerTest.hxx>
#include <string.h>
#include <Quantity_NameOfColor.hxx> #include <Quantity_NameOfColor.hxx>
#include <Draw_Interpretor.hxx> #include <Draw_Interpretor.hxx>
#include <Draw.hxx> #include <Draw.hxx>
@ -139,13 +133,9 @@
#include <Image_AlienPixMap.hxx> #include <Image_AlienPixMap.hxx>
#include <TColStd_HArray1OfAsciiString.hxx> #include <TColStd_HArray1OfAsciiString.hxx>
#ifdef HAVE_STRINGS_H #ifdef _WIN32
#include <strings.h> # define _CRT_SECURE_NO_DEPRECATE
#endif # pragma warning (disable:4996)
#ifdef WNT
#define _CRT_SECURE_NO_DEPRECATE
#pragma warning (disable:4996)
#endif #endif
extern ViewerTest_DoubleMapOfInteractiveAndName& GetMapOfAIS(); extern ViewerTest_DoubleMapOfInteractiveAndName& GetMapOfAIS();

View File

@ -13,10 +13,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <ViewerTest.hxx> #include <ViewerTest.hxx>
#include <AIS_Drawer.hxx> #include <AIS_Drawer.hxx>

View File

@ -15,9 +15,6 @@
// commercial license or contractual agreement. // commercial license or contractual agreement.
#include <ViewerTest.hxx> #include <ViewerTest.hxx>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <AIS_AngleDimension.hxx> #include <AIS_AngleDimension.hxx>
#include <AIS_Circle.hxx> #include <AIS_Circle.hxx>
@ -57,7 +54,6 @@
#include <Precision.hxx> #include <Precision.hxx>
#include <Select3D_Projector.hxx> #include <Select3D_Projector.hxx>
#include <StdSelect.hxx> #include <StdSelect.hxx>
#include <string.h>
#include <TCollection_AsciiString.hxx> #include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx> #include <TCollection_ExtendedString.hxx>
#include <TColStd_MapOfInteger.hxx> #include <TColStd_MapOfInteger.hxx>
@ -82,10 +78,6 @@ extern ViewerTest_DoubleMapOfInteractiveAndName& GetMapOfAIS();
extern int ViewerMainLoop(Standard_Integer argc, const char** argv); extern int ViewerMainLoop(Standard_Integer argc, const char** argv);
extern Handle(AIS_InteractiveContext)& TheAISContext (); extern Handle(AIS_InteractiveContext)& TheAISContext ();
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#define VertexMask 0x01 #define VertexMask 0x01
#define EdgeMask 0x02 #define EdgeMask 0x02
#define FaceMask 0x04 #define FaceMask 0x04

View File

@ -14,10 +14,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <OpenGl_GlCore20.hxx> #include <OpenGl_GlCore20.hxx>
#include <AIS_Shape.hxx> #include <AIS_Shape.hxx>
#include <AIS_Drawer.hxx> #include <AIS_Drawer.hxx>