8000 Win32 compile problem · Issue #6 · agl/jbig2enc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Win32 compile problem #6

New issue

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

Closed
dwightkelly opened this issue Dec 2, 2009 · 3 comments
Closed

Win32 compile problem #6

dwightkelly opened this issue Dec 2, 2009 · 3 comments

Comments

@dwightkelly
Copy link

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__

@dwightkelly
Copy link
Author
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__

@dwightkelly
Copy link
Author

I made the changes on my fork

@agl
Copy link
Owner
agl commented Dec 9, 2009

applied 622034c

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0