diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-02-02 14:29:10 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-02-02 14:29:10 (GMT) |
commit | 971e1df3df8c67fb8f926001e820fcce89f3c6e8 (patch) | |
tree | b5f3c0c0f1c59868fda9aa6c08ec2d1ac3b70f07 /Modules | |
parent | c76fd39587f428f970987773306759b46a9017cb (diff) | |
download | cpython-971e1df3df8c67fb8f926001e820fcce89f3c6e8.zip cpython-971e1df3df8c67fb8f926001e820fcce89f3c6e8.tar.gz cpython-971e1df3df8c67fb8f926001e820fcce89f3c6e8.tar.bz2 |
Quick hack so PowerPC macs can access system structures
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/structmodule.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/structmodule.c b/Modules/structmodule.c index a0ecb67..649f330 100644 --- a/Modules/structmodule.c +++ b/Modules/structmodule.c @@ -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 */ |