1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +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

@@ -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 <Standard_CLocaleSentry.hxx>
#include <Standard_TypeDef.hxx>

View File

@@ -12,10 +12,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 <Standard_ExtString.hxx>
#include <Standard_Type.hxx>
#include <Standard_OStream.hxx>

View File

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

View File

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

View File

@@ -12,10 +12,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 <Standard_Type.ixx>
#include <Standard_Persistent.hxx>

View File

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