8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed compile problem on Win32 regarding packed attribute
--- jbig2structs.h (revision 5948) +++ jbig2structs.h (working copy) @@ -137,7 +137,7 @@
u32 exsyms; u32 newsyms; -} attribute((packed)); +} PACKED;
struct jbig2_text_region { u32 width; @@ -171,15 +171,19 @@ #endif
// huffman flags omitted -} attribute((packed)); +} PACKED;
struct jbig2_text_region_atflags { signed char a1x, a1y, a2x, a2y; -} attribute((packed)); +} PACKED;
struct jbig2_text_region_syminsts { u32 sbnuminstances; // huffman decoding table omitted -} attribute((packed)); +} PACKED;
+#if defined(WIN32) +#pragma pack() +#endif + #endif // JBIG2ENC_JBIG2STRUCTS_H__
The text was updated successfully, but these errors were encountered:
Index: jbig2structs.h =================================================================== --- jbig2structs.h (revision 5948) +++ jbig2structs.h (working copy) @@ -137,7 +137,7 @@ u32 exsyms; u32 newsyms; -} __attribute__((packed)); +} PACKED; struct jbig2_text_region { u32 width; @@ -171,15 +171,19 @@ #endif // huffman flags omitted -} __attribute__((packed)); +} PACKED; struct jbig2_text_region_atflags { signed char a1x, a1y, a2x, a2y; -} __attribute__((packed)); +} PACKED; struct jbig2_text_region_syminsts { u32 sbnuminstances; // huffman decoding table omitted -} __attribute__((packed)); +} PACKED; +#if defined(WIN32) +#pragma pack() +#endif + #endif // JBIG2ENC_JBIG2STRUCTS_H__
Sorry, something went wrong.
I made the changes on my fork
applied 622034c
No branches or pull requests
Fixed compile problem on Win32 regarding packed attribute
Index: jbig2structs.h
--- jbig2structs.h (revision 5948)
+++ jbig2structs.h (working copy)
@@ -137,7 +137,7 @@
u32 exsyms;
u32 newsyms;
-} attribute((packed));
+} PACKED;
struct jbig2_text_region {
u32 width;
@@ -171,15 +171,19 @@
#endif
// huffman flags omitted
-} attribute((packed));
+} PACKED;
struct jbig2_text_region_atflags {
signed char a1x, a1y, a2x, a2y;
-} attribute((packed));
+} PACKED;
struct jbig2_text_region_syminsts {
u32 sbnuminstances;
// huffman decoding table omitted
-} attribute((packed));
+} PACKED;
+#if defined(WIN32)
+#pragma pack()
+#endif
+
#endif // JBIG2ENC_JBIG2STRUCTS_H__
The text was updated successfully, but these errors were encountered: