1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024002: Overall code and build procedure refactoring -- Mac OSX

Draw_Window_1.mm, Cocoa_Window.mm - fix compilation issues on OS X
CMake env.build.sh - fix libraries path

MSVC project templates - /bigobj flag added for all configurations (x64, x86, release and debug)

Standard_Type.hxx - enforce initialization of all type descriptors at library load
This commit is contained in:
abv
2015-07-17 11:43:33 +03:00
parent e506f14279
commit 52f7e0d0a8
8 changed files with 18 additions and 25 deletions

View File

@@ -162,6 +162,8 @@ namespace opencascade {
template <typename T>
const Handle(Standard_Type)& type_instance<T>::get ()
{
(void)myInstance; // ensure that myInstance is instantiated
// static variable inside function ensures that descriptors
// are initialized in correct sequence
static Handle(Standard_Type) anInstance =