ref: 5391a9fec12df855de73be568d4a796494ecaf35
parent: b3218a9c6533727241d7deb2b52a6b1e259a920a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun May 4 19:31:59 EDT 2014
gs: fix truetype interpreter for amd64
--- a/sys/src/cmd/gs/src/ttfsfnt.h
+++ b/sys/src/cmd/gs/src/ttfsfnt.h
@@ -47,6 +47,8 @@
typedef int32_t F26Dot6; /* 26.6 32-bit signed fixed-point number */
#endif
+#pragma pack on
+
typedef struct {uint32 bc;
uint32 ad;
@@ -348,5 +350,7 @@
} FontTableInfo;
#define RAW_TRUE_TYPE_SIZE 512
+
+#pragma pack off
#endif
--- a/sys/src/cmd/gs/src/tttypes.h
+++ b/sys/src/cmd/gs/src/tttypes.h
@@ -118,11 +118,7 @@
#endif
#ifdef Plan9
-#ifdef Tamd64
- typedef unsigned long long* PStorage;
-#else
typedef unsigned int* PStorage;
-#endif
#elif ARCH_SIZEOF_PTR == SIZEOF_LONG
typedef long* PStorage;
#elif ARCH_SIZEOF_PTR == SIZEOF_INT
--
⑨