Weak aliasing is not supported with Mach-O

This fixes the simulator for Mac OS X.
This commit is contained in:
Rainer Mueller 2011-08-05 14:45:20 +02:00
parent 35b92adcfc
commit 12f3a37fe8
1 changed files with 12 additions and 0 deletions

View File

@ -1,8 +1,14 @@
#ifdef __APPLE__
#define lcdRefresh _hideaway_lcdRefresh
#endif
#define lcdDisplay _hideaway_lcdDisplay #define lcdDisplay _hideaway_lcdDisplay
#define lcdInit _hideaway_lcdInit #define lcdInit _hideaway_lcdInit
#include "../../../firmware/lcd/display.c" #include "../../../firmware/lcd/display.c"
#undef lcdDisplay #undef lcdDisplay
#undef lcdInit #undef lcdInit
#ifdef __APPLE__
#undef lcdRefresh
#endif
#include "simulator.h" #include "simulator.h"
@ -10,5 +16,11 @@ void lcdDisplay() {
simlcdDisplayUpdate(); simlcdDisplayUpdate();
} }
#ifdef __APPLE__
void lcdRefresh() {
lcdDisplay();
}
#endif
void lcdInit() { void lcdInit() {
} }