some upgrade has hosed my build on macos, catalina. not sure it was working at all since last OS version (prior to catalina, whatever that was).
but running apps previously built was working, and now is not, and rebuild is also failing.
should not affect other platforms, except for basis/functions.h change that may cause more warnings now (but which newer mac compiler hated).
template <class target_type, class source_type>
target_type *cast_or_throw(source_type &to_cast, const target_type &ignored)
{
template <class target_type, class source_type>
target_type *cast_or_throw(source_type &to_cast, const target_type &ignored)
{
- if (!&ignored) {} // do nothing.
+// if (!&ignored) {} // do nothing.
target_type *cast = dynamic_cast<target_type *>(&to_cast);
if (!cast) throw "error: casting problem, unknown RTTI cast.";
return cast;
target_type *cast = dynamic_cast<target_type *>(&to_cast);
if (!cast) throw "error: casting problem, unknown RTTI cast.";
return cast;
template <class target_type, class source_type>
const target_type *cast_or_throw(const source_type &to_cast, const target_type &ignored)
{
template <class target_type, class source_type>
const target_type *cast_or_throw(const source_type &to_cast, const target_type &ignored)
{
- if (!&ignored) {} // do nothing.
+// if (!&ignored) {} // do nothing.
const target_type *cast = dynamic_cast<const target_type *>(&to_cast);
if (!cast) throw "error: casting problem, unknown RTTI cast.";
return cast;
const target_type *cast = dynamic_cast<const target_type *>(&to_cast);
if (!cast) throw "error: casting problem, unknown RTTI cast.";
return cast;
DEPENDENCY_DEFINITIONS += NO_VERSION
DEPENDENCY_ADDITIONS = -X/usr/include -X/usr/include/c++/$(COMPILER_VERSION) -X/usr/include/c++/$(COMPILER_VERSION)/tr1 -X/usr/local/include -X/usr/include/linux -X/usr/include/wx-2.8 -X/usr/lib/gcc/i586-suse-linux/$(COMPILER_VERSION)/include -X/usr/lib/gcc/i486-linux-gnu/$(COMPILER_VERSION)/include
DEPENDENCY_DEFINITIONS += NO_VERSION
DEPENDENCY_ADDITIONS = -X/usr/include -X/usr/include/c++/$(COMPILER_VERSION) -X/usr/include/c++/$(COMPILER_VERSION)/tr1 -X/usr/local/include -X/usr/include/linux -X/usr/include/wx-2.8 -X/usr/lib/gcc/i586-suse-linux/$(COMPILER_VERSION)/include -X/usr/lib/gcc/i486-linux-gnu/$(COMPILER_VERSION)/include
- COMPILER_HEADER_DIR := /usr/local/include /usr/include /System/Library/Frameworks/Foundation.framework/Versions/C/Headers
+ COMPILER_HEADER_DIR := /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
+#/usr/local/include /usr/include
+# export CPATH := /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
+#/System/Library/Frameworks/Foundation.framework/Versions/C/Headers
+#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
+#/Library/Developer/CommandLineTools/usr/include
# "USE_XWIN" specifies that this project needs X window system support.
#USE_XWIN =
# "USE_XWIN" specifies that this project needs X window system support.
#USE_XWIN =
- DEFINITIONS += __LINUX__ linux __linux__ UNIX unix __UNIX__ __USE_GNU
+# DEFINITIONS += __LINUX__ linux __linux__ UNIX unix __UNIX__ __USE_GNU
+ DEFINITIONS += UNIX unix __UNIX__ __USE_GNU
# X Window System not enabled by default.
#DEFINITIONS += __XWINDOWS__
# X Window System not enabled by default.
#DEFINITIONS += __XWINDOWS__