summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mfluadir/otfcc/include/dep/sds.h
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2021-03-16 21:19:25 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2021-03-16 21:19:25 +0000
commit3256351fa7d547a6394acc36a610572f137a8362 (patch)
tree16ec21bb567b378f45a441fd6b79f4703f43ef4e /Build/source/texk/web2c/mfluadir/otfcc/include/dep/sds.h
parent8546aba79031b8428abbbf0148ebe6819fcb87ae (diff)
mflua: code clean up (thanks to A. Kakuto)
git-svn-id: svn://tug.org/texlive/trunk@58429 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/mfluadir/otfcc/include/dep/sds.h')
-rw-r--r--Build/source/texk/web2c/mfluadir/otfcc/include/dep/sds.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/mfluadir/otfcc/include/dep/sds.h b/Build/source/texk/web2c/mfluadir/otfcc/include/dep/sds.h
index 3cdc7e98548..36267c3c84d 100644
--- a/Build/source/texk/web2c/mfluadir/otfcc/include/dep/sds.h
+++ b/Build/source/texk/web2c/mfluadir/otfcc/include/dep/sds.h
@@ -42,6 +42,10 @@ typedef char *sds;
/* Note: sdshdr5 is never used, we just access the flags byte directly.
* However is here to document the layout of type 5 SDS strings. */
+#ifdef _MSC_VER
+#define __attribute__(x)
+#pragma pack(push,1)
+#endif
struct __attribute__((__packed__)) sdshdr5 {
unsigned char flags; /* 3 lsb of type, and 5 msb of string length */
char buf[];
@@ -70,7 +74,9 @@ struct __attribute__((__packed__)) sdshdr64 {
unsigned char flags; /* 3 lsb of type, 5 unused bits */
char buf[];
};
-
+#ifdef _MSC_VER
+#pragma pack(pop)
+#endif
#define SDS_TYPE_5 0
#define SDS_TYPE_8 1
#define SDS_TYPE_16 2