diff Modules/structmodule.c @ 2278:65644766158a legacy-trunk

Quick hack so PowerPC macs can access system structures
author Jack Jansen <jack.jansen@cwi.nl>
date Thu, 02 Feb 1995 14:29:10 +0000
parents 172ba04a5191
children 65d2d8e67da3
line wrap: on
line diff
--- a/Modules/structmodule.c	Thu Feb 02 14:27:31 1995 +0000
+++ b/Modules/structmodule.c	Thu Feb 02 14:29:10 1995 +0000
@@ -32,6 +32,16 @@
 
 /* Define various structs to figure out the alignments of types */
 
+#ifdef __MWERKS__
+/*
+** XXXX We have a problem here. There are no unique alignment rules
+** on the PowerPC mac. 
+*/
+#ifdef __powerc
+#pragma options align=mac68k
+#endif
+#endif /* __MWERKS__ */
+
 typedef struct { char c; short x; } s_short;
 typedef struct { char c; int x; } s_int;
 typedef struct { char c; long x; } s_long;
@@ -44,6 +54,10 @@
 #define FLOAT_ALIGN (sizeof(s_float) - sizeof(float))
 #define DOUBLE_ALIGN (sizeof(s_double) - sizeof(double))
 
+#ifdef __powerc
+#pragma options align=reset
+#endif
+
 
 /* Align a size according to a format code */