]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Quick hack so PowerPC macs can access system structures
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 2 Feb 1995 14:29:10 +0000 (14:29 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 2 Feb 1995 14:29:10 +0000 (14:29 +0000)
Modules/structmodule.c

index a0ecb675d026f8e9a390ed175dd07ad8b17fd295..649f3307107e2cbcaf23f2df052e77a98f6df18e 100644 (file)
@@ -32,6 +32,16 @@ static object *StructError;
 
 /* 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 @@ typedef struct { char c; double x; } s_double;
 #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 */