diff --git a/src/TKService/CMakeLists.txt b/src/TKService/CMakeLists.txt index 2107f21b64..244d748b4a 100644 --- a/src/TKService/CMakeLists.txt +++ b/src/TKService/CMakeLists.txt @@ -4,6 +4,4 @@ OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit) if (APPLE AND BUILD_USE_PCH) set_target_properties(TKService PROPERTIES DISABLE_PRECOMPILE_HEADERS ON) -else() - ADD_PRECOMPILED_HEADER(TKService "${CMAKE_CURRENT_SOURCE_DIR}/TKService_pch.hxx") endif() diff --git a/src/TKService/TKService_pch.hxx b/src/TKService/TKService_pch.hxx deleted file mode 100644 index 9b9273c4ea..0000000000 --- a/src/TKService/TKService_pch.hxx +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef TKSERVICE_PCH_H -#define TKSERVICE_PCH_H - -// Windows-specific headers (for MSVC) -#ifdef _WIN32 - #ifndef NOMINMAX - #define NOMINMAX - #endif - #include // For Unicode/MBCS mappings - #include // For Windows API functions like WideCharToMultiByte - #ifdef GetObject - #undef GetObject - #endif -#endif - -#include -#include -#include -#include - -#endif // TKSERVICE_PCH_H diff --git a/src/TKernel/TKernel_pch.hxx b/src/TKernel/TKernel_pch.hxx index 14ec7e9b46..7f72876c12 100644 --- a/src/TKernel/TKernel_pch.hxx +++ b/src/TKernel/TKernel_pch.hxx @@ -3,7 +3,12 @@ // Standard library headers #include +#include +#include +#include #include +#include +#include #include // Windows-specific headers (for MSVC)