#include "mainwin.h"
#include "types.h"
+// Apparently on other archs, SDL is hijacking main, so let's do this:
+#undef main
+
// Here's the main application loop--short and simple...
int main(int argc, char * argv[])
{
//this isn't endian safe...
#define BSWAP64(x) ((htonl(x & 0xFFFFFFFF) << 32) | htonl(x >> 32))
// Actually, we use ESAFExx() macros instead of this, and we use GCC to check the endianness...
+// Acutally, considering that "byteswap.h" doesn't exist elsewhere, the above
+// is probably our best bet here. Just need to rename them to ESAFExx().
uint16 & memcon1 = *((uint16 *)&jagMemSpace[0xF00000]);
uint16 & memcon2 = *((uint16 *)&jagMemSpace[0xF00002]);
#define GET16(r, a) ((r[(a)] << 8) | r[(a)+1])
//This doesn't seem to work on OSX. So have to figure something else out. :-(
+//byteswap.h doesn't exist on OSX.
#if 0
// This is GCC specific, but we can fix that if we need to...
// Big plus of this approach is that these compile down to single instructions on little