Don't use CoreFoundation to check machine's endianness

This commit is contained in:
2014-12-03 18:04:33 -05:00
parent 7a2a0f93d3
commit efa552a366
7 changed files with 11 additions and 48 deletions

View File

@@ -29,8 +29,6 @@
#include "boe.menus.h"
#include "cursors.h"
#include <CoreFoundation/CFByteOrder.h>
extern cursor_type arrow_curs[3][3];
extern cursor_type current_cursor;
@@ -144,8 +142,6 @@ bool sleep_field;
//
// Main body of program Exile
//
void check_for_intel();
bool mac_is_intel;
int main(int argc, char* argv[]) {
#if 0
@@ -217,16 +213,6 @@ int main(int argc, char* argv[]) {
}
}
void check_for_intel(){
int response = CFByteOrderGetCurrent();
if(response == CFByteOrderUnknown){
printf("Gestalt error\n");
exit(1);
}
if(response == CFByteOrderLittleEndian) mac_is_intel = true;
else mac_is_intel = false;
}
//
// Initialize everything for the program, make sure we can run
//