From 46903830718aff44a47ee99f5539b6243c257ad3 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 15 Dec 2007 15:28:38 +0000 Subject: [PATCH] fixed bug #1851365 - mac os x leopard build and run fails - endian issues git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5398 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/Platform.h | 1 + Source/icon.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Source/Platform.h b/Source/Platform.h index 98ef2cfc..ed063af5 100644 --- a/Source/Platform.h +++ b/Source/Platform.h @@ -521,6 +521,7 @@ typedef DWORDLONG ULONGLONG,*PULONGLONG; # define WS_EX_RIGHTSCROLLBAR 0 # define WS_EX_RTLREADING 0x2000 # define WS_EX_LEFTSCROLLBAR 0x4000 +# define WS_EX_LAYOUTRTL 0x00400000 # define TVS_RTLREADING 64 diff --git a/Source/icon.cpp b/Source/icon.cpp index e169fcdf..ff318305 100644 --- a/Source/icon.cpp +++ b/Source/icon.cpp @@ -115,6 +115,8 @@ IconGroup load_icon_file(const char* filename) throw runtime_error("unable to read offset from file"); } + FIX_ENDIAN_INT32_INPLACE(iconOffset); + fpos_t pos; fgetpos(file, &pos);