X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0b6a49c21fb59ab3b03480a299ce2beab5fa6811..4635abaca683ac7444e404dab6437e178e8920f6:/include/wx/platform.h

diff --git a/include/wx/platform.h b/include/wx/platform.h
index bc61753e16..30936a7d16 100644
--- a/include/wx/platform.h
+++ b/include/wx/platform.h
@@ -662,7 +662,24 @@
 /*  According to Stefan even ancient Mac compilers defined __BIG_ENDIAN__ */
 #    warning "Compiling wxMac with probably wrong endianness"
 #endif
-
+/* also the 32/64 bit universal builds must be handled accordingly */
+#ifdef __DARWIN__
+#	ifdef __LP64__
+#		undef SIZEOF_VOID_P 
+#		undef SIZEOF_LONG 
+#		undef SIZEOF_SIZE_T 
+#		define SIZEOF_VOID_P 8
+#		define SIZEOF_LONG 8
+#		define SIZEOF_SIZE_T 8
+#	else
+#		undef SIZEOF_VOID_P 
+#		undef SIZEOF_LONG 
+#		undef SIZEOF_SIZE_T 
+#		define SIZEOF_VOID_P 4
+#		define SIZEOF_LONG 4
+#		define SIZEOF_SIZE_T 4
+#	endif
+#endif
 /*
    check the consistency of the settings in setup.h: note that this must be
    done after setting wxUSE_UNICODE correctly as it is used in wx/chkconf.h