Fixed alignment on a couple of SourcePawn debugging structures on OS X (bug 4578, r=dvander).
Fixed alignment on a couple of SourcePawn debugging structures on OS X (
bug 4578, r=dvander).
This problem only affected plugins compiled with a fairly old version of spcomp.
1.1 --- a/public/sourcepawn/sp_file_headers.h Thu Aug 19 21:57:09 2010 -0400
1.2 +++ b/public/sourcepawn/sp_file_headers.h Thu Aug 19 22:51:42 2010 -0500
1.3 @@ -260,7 +260,7 @@
1.4 uint32_t name; /**< Offset into debug nametable */
1.5 } sp_fdbg_ntvarg_t;
1.6
1.7 -#if defined __linux__
1.8 +#if defined __GNUC__
1.9 #pragma pack() /* reset default packing */
1.10 #else
1.11 #pragma pack(pop) /* reset previous packing */