mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -58,13 +58,7 @@
|
||||
#include <Prs3d_IsoAspect.hxx>
|
||||
#include <TopTools_MapOfShape.hxx>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <Draw_Interpretor.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
@@ -14,12 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <ViewerTest.hxx>
|
||||
#include <string.h>
|
||||
#include <BRepTest.hxx>
|
||||
#include <TColgp_Array1OfPnt2d.hxx>
|
||||
#include <DBRep.hxx>
|
||||
@@ -55,12 +50,9 @@
|
||||
#include <AIS_InteractiveObject.hxx>
|
||||
#include <AIS_Shape.hxx>
|
||||
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
#ifdef WNT
|
||||
#ifdef _WIN32
|
||||
//#define strcasecmp strcmp Already defined in Standard
|
||||
#include <stdio.h>
|
||||
# include <stdio.h>
|
||||
#endif
|
||||
|
||||
extern Handle(AIS_Shape) GetAISShapeFromName(const char* name);
|
||||
|
@@ -14,14 +14,8 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <ViewerTest.hxx>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <Quantity_NameOfColor.hxx>
|
||||
#include <Draw_Interpretor.hxx>
|
||||
#include <Draw.hxx>
|
||||
@@ -139,13 +133,9 @@
|
||||
#include <Image_AlienPixMap.hxx>
|
||||
#include <TColStd_HArray1OfAsciiString.hxx>
|
||||
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
#ifdef WNT
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
#pragma warning (disable:4996)
|
||||
#ifdef _WIN32
|
||||
# define _CRT_SECURE_NO_DEPRECATE
|
||||
# pragma warning (disable:4996)
|
||||
#endif
|
||||
|
||||
extern ViewerTest_DoubleMapOfInteractiveAndName& GetMapOfAIS();
|
||||
|
@@ -13,10 +13,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <ViewerTest.hxx>
|
||||
|
||||
#include <AIS_Drawer.hxx>
|
||||
|
@@ -15,9 +15,6 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <ViewerTest.hxx>
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <AIS_AngleDimension.hxx>
|
||||
#include <AIS_Circle.hxx>
|
||||
@@ -57,7 +54,6 @@
|
||||
#include <Precision.hxx>
|
||||
#include <Select3D_Projector.hxx>
|
||||
#include <StdSelect.hxx>
|
||||
#include <string.h>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TCollection_ExtendedString.hxx>
|
||||
#include <TColStd_MapOfInteger.hxx>
|
||||
@@ -82,10 +78,6 @@ extern ViewerTest_DoubleMapOfInteractiveAndName& GetMapOfAIS();
|
||||
extern int ViewerMainLoop(Standard_Integer argc, const char** argv);
|
||||
extern Handle(AIS_InteractiveContext)& TheAISContext ();
|
||||
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#define VertexMask 0x01
|
||||
#define EdgeMask 0x02
|
||||
#define FaceMask 0x04
|
||||
|
@@ -14,10 +14,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <OpenGl_GlCore20.hxx>
|
||||
#include <AIS_Shape.hxx>
|
||||
#include <AIS_Drawer.hxx>
|
||||
|
Reference in New Issue
Block a user