Add dumb changes for compatibility that shouldn't be needed.

This commit is contained in:
Steve Checkoway
2003-11-06 00:57:21 +00:00
parent cd409a039b
commit df621dfaf2
2 changed files with 18 additions and 0 deletions
@@ -7,7 +7,24 @@
*
*/
/* This is really dumb. I don't know why it is needed all of a sudden */
#include <math.h>
#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 <Cocoa/Cocoa.h>
#ifdef POSIX_DEFINED
#undef _POSIX_SOURCE
#undef POSIX_DEFINED
#endif
static NSWindow *window;
static NSTextView *text;
@@ -9,3 +9,4 @@
#define BACKTRACE_METHOD_POWERPC_DARWIN
#define HAVE_VERSION_INFO
#define HAVE_CXA_DEMANGLE
#define _BSD_WCHAR_T_DEFINED_