| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | |
| | |
| | |
| | |
| | |
| |
|
| |
|
| |
|
| | #ifndef FC_CONFIG_H
|
| | #define FC_CONFIG_H
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| | #if defined(WIN64) || defined(_WIN64) || defined(__WIN64__)
|
| | # ifndef FC_OS_WIN32
|
| | # define FC_OS_WIN32
|
| | # endif
|
| | # ifndef FC_OS_WIN64
|
| | # define FC_OS_WIN64
|
| | # endif
|
| | #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
|
| | # ifndef FC_OS_WIN32
|
| | # define FC_OS_WIN32
|
| | # endif
|
| | # if defined(__MINGW32__)
|
| | # if HAVE_CONFIG_H
|
| | # include <config.h>
|
| | # endif
|
| |
|
| | # endif
|
| | #elif defined(__APPLE__)
|
| | # ifndef FC_OS_MACOSX
|
| | # define FC_OS_MACOSX
|
| | # endif
|
| | #elif defined(linux) || defined(__linux) || defined(__linux__) || defined(__GLIBC__)
|
| | # ifndef FC_OS_LINUX
|
| | # define FC_OS_LINUX
|
| | # endif
|
| | #elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
| | # ifndef FC_OS_BSD
|
| | # define FC_OS_BSD
|
| | # endif
|
| | #elif defined(__CYGWIN__)
|
| | # ifndef FC_OS_CYGWIN
|
| | # define FC_OS_CYGWIN
|
| |
|
| | # define HAVE_INT8_T
|
| | # define HAVE_UINT8_T
|
| | # define HAVE_INT16_T
|
| | # define HAVE_UINT16_T
|
| | # define HAVE_INT32_T
|
| | # define HAVE_UINT32_T
|
| | # define HAVE_INT64_T
|
| | # define HAVE_UINT64_T
|
| | # define HAVE_INTPTR_T
|
| | # define HAVE_UINTPTR_T
|
| | #endif
|
| |
|
| | #else
|
| | # error "FreeCAD is not ported to this OS yet. For help see www.freecad.org"
|
| | #endif
|
| |
|
| | #ifdef FC_OS_WIN32
|
| | # define PATHSEP '\\'
|
| | #else
|
| | # define PATHSEP '/'
|
| | #endif
|
| |
|
| |
|
| |
|
| |
|
| | #if defined(__MINGW32__)
|
| |
|
| | #elif defined (FC_OS_WIN64) || defined (FC_OS_WIN32)
|
| |
|
| | #ifndef HAVE_INT8_T
|
| | #define HAVE_INT8_T
|
| | typedef signed char int8_t;
|
| | #endif
|
| |
|
| | #ifndef HAVE_UINT8_T
|
| | #define HAVE_UINT8_T
|
| | typedef unsigned char uint8_t;
|
| | #endif
|
| |
|
| | #ifndef HAVE_INT16_T
|
| | #define HAVE_INT16_T
|
| | typedef short int16_t;
|
| | #endif
|
| |
|
| | #ifndef HAVE_UINT16_T
|
| | #define HAVE_UINT16_T
|
| | typedef unsigned short uint16_t;
|
| | #endif
|
| |
|
| | #ifndef HAVE_INT32_T
|
| | #define HAVE_INT32_T
|
| | typedef int int32_t;
|
| | #endif
|
| |
|
| | #ifndef HAVE_UINT32_T
|
| | #define HAVE_UINT32_T
|
| | typedef unsigned int uint32_t;
|
| | #endif
|
| |
|
| | #ifndef HAVE_INT64_T
|
| | #define HAVE_INT64_T
|
| | typedef __int64 int64_t;
|
| | #endif
|
| |
|
| | #ifndef HAVE_UINT64_T
|
| | #define HAVE_UINT64_T
|
| | typedef unsigned __int64 uint64_t;
|
| | #endif
|
| |
|
| |
|
| | #define COIN_CONFIGURE_BUILD
|
| |
|
| | #define HAVE_INTTYPES_H 1
|
| |
|
| | #define HAVE_STDINT_H 1
|
| |
|
| | #define HAVE_SYS_TYPES_H 1
|
| |
|
| | #define HAVE_STDDEF_H 1
|
| |
|
| | #endif
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| | #ifdef _MSC_VER
|
| | # ifndef WNT
|
| | # define WNT
|
| | # endif
|
| | # ifndef WIN32
|
| | # define WIN32
|
| | # endif
|
| | # ifndef _WINDOWS
|
| | # define _WINDOWS
|
| | # endif
|
| | #endif
|
| |
|
| | #ifdef FC_OS_LINUX
|
| | # define LIN
|
| | # define LININTEL
|
| | #endif
|
| |
|
| | #define CSFDB
|
| |
|
| |
|
| | #ifndef FC_OS_LINUX
|
| | # define FC_USE_OCAFBROWSER
|
| | #endif
|
| |
|
| |
|
| | #ifdef FC_OCC_DEBUG
|
| | # ifdef FC_DEBUG
|
| | # define DEBUG 1
|
| | # else
|
| | # undef DEBUG
|
| | # ifndef NDEBUG
|
| | # define NDEBUG
|
| | # endif
|
| | # endif
|
| | #endif
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| | #ifndef QT_NO_CAST_FROM_ASCII
|
| | # define QT_NO_CAST_FROM_ASCII
|
| | #endif
|
| |
|
| | #ifndef QT_NO_KEYWORDS
|
| | # define QT_NO_KEYWORDS
|
| | #endif
|
| |
|
| | #if defined (FC_OS_WIN32)
|
| | # ifndef QT_DLL
|
| | # define QT_DLL
|
| | # endif
|
| | #endif
|
| |
|
| | #ifndef QT_THREAD_SUPPORT
|
| | # define QT_THREAD_SUPPORT
|
| | #endif
|
| |
|
| | #ifndef QT_ALTERNATE_QTSMANIP
|
| | # define QT_ALTERNATE_QTSMANIP
|
| | #endif
|
| |
|
| |
|
| |
|
| |
|
| | #if defined (FC_OS_WIN32)
|
| | # ifndef FCGui
|
| | # ifndef COIN_DLL
|
| | # define COIN_DLL
|
| | # endif
|
| | # endif
|
| | #endif
|
| |
|
| |
|
| |
|
| | #if defined (FC_OS_WIN32)
|
| | # ifndef QUARTER_INTERNAL
|
| | # ifndef QUARTER_DLL
|
| | # define QUARTER_DLL
|
| | # endif
|
| | # endif
|
| | #endif
|
| |
|
| |
|
| |
|
| | #ifndef BOOST_SIGNALS_NO_DEPRECATION_WARNING
|
| | #define BOOST_SIGNALS_NO_DEPRECATION_WARNING
|
| | #endif
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| | #ifdef FC_DEBUG
|
| | # define DONT_CATCH_CXX_EXCEPTIONS 1
|
| | # define DBG_TRY
|
| | # define DBG_CATCH(X)
|
| | #else
|
| |
|
| | # define DBG_TRY try {
|
| |
|
| | # define DBG_CATCH(X) } catch (...) { X }
|
| | #endif
|
| |
|
| |
|
| |
|
| |
|
| | #include <FCGlobal.h>
|
| |
|
| |
|
| |
|
| | #ifdef _MSC_VER
|
| | # pragma warning( disable : 4251 )
|
| | # pragma warning( disable : 4996 )
|
| | #if defined(WIN64) || defined(_WIN64) || defined(__WIN64__)
|
| | # pragma warning( disable : 4244 )
|
| | # pragma warning( disable : 4267 )
|
| | #endif
|
| |
|
| | #endif
|
| |
|
| | #endif
|
| |
|