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

@@ -16,9 +16,6 @@
#include "pc.menus.h"
#include "winutil.h"
#include "cursors.h"
#ifdef __APPLE__
#include <CoreFoundation/CFByteOrder.h>
#endif
extern std::string get_str(std::string, short);
@@ -92,7 +89,7 @@ bool verify_restore_quit(bool mode);
void set_up_apple_events();
void handle_item_menu(int item_hit);
//item_record_type convert_item (short_item_record_type s_item);
bool cur_scen_is_mac, mac_is_intel;
extern bool cur_scen_is_mac;
extern fs::path progDir;
// File io
short specials_res_id;
@@ -132,7 +129,6 @@ int main(int argc, char* argv[]) {
//
//MW specified argument and return type.
void check_for_intel();
void Initialize(void)
{
@@ -241,16 +237,6 @@ void handle_file_menu(int item_hit)
}
}
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;
}
static void display_strings(short nstr, pic_num_t pic) {
cStrDlog display_strings(get_str("pcedit", nstr), "", "Editing party", pic, PIC_DLOG);
display_strings.setSound(57);