From df621dfaf21e223c51f9ab6a965bed005a60a236 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Thu, 6 Nov 2003 00:57:21 +0000 Subject: [PATCH] Add dumb changes for compatibility that shouldn't be needed. --- .../arch/LoadingWindow/LoadingWindow_Cocoa.mm | 17 +++++++++++++++++ stepmania/src/archutils/Darwin/arch_setup.h | 1 + 2 files changed, 18 insertions(+) diff --git a/stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.mm b/stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.mm index 0ad759e58a..1501b07f6e 100644 --- a/stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.mm +++ b/stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.mm @@ -7,7 +7,24 @@ * */ +/* This is really dumb. I don't know why it is needed all of a sudden */ +#include +#ifndef scalb +#define scalb(x, n) scalbn(x, n) +#endif +#ifndef gamma +#define gamma(x) lgamma(x) +#endif +#ifndef _POSIX_SOURCE +#define _POSIX_SOURCE +#define POSIX_DEFINED +#endif #import +#ifdef POSIX_DEFINED +#undef _POSIX_SOURCE +#undef POSIX_DEFINED +#endif + static NSWindow *window; static NSTextView *text; diff --git a/stepmania/src/archutils/Darwin/arch_setup.h b/stepmania/src/archutils/Darwin/arch_setup.h index b9f1ddc6e9..e6eeca6c3b 100644 --- a/stepmania/src/archutils/Darwin/arch_setup.h +++ b/stepmania/src/archutils/Darwin/arch_setup.h @@ -9,3 +9,4 @@ #define BACKTRACE_METHOD_POWERPC_DARWIN #define HAVE_VERSION_INFO #define HAVE_CXA_DEMANGLE +#define _BSD_WCHAR_T_DEFINED_