Skip to content
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

fix .3DS error "Chunk is too large" with gcc >=4.7.0 / mingw #83

Merged
merged 1 commit into from Aug 29, 2013

Conversation

abma
Copy link
Contributor

@abma abma commented Aug 29, 2013

GCC 4.7.0 breaks attribute((packed)):
http://www.bttr-software.de/forum/mix_entry.php?id=11767

see also the gcc 4.7.0 changelog: http://gcc.gnu.org/gcc-4.7/changes.html

"Windows mingw targets are using the -mms-bitfields option by default."

not sure if my fix is the cleanest approach, but it seems to work... gcc_struct seems to exist since gcc 3.4

backlink to the initial bug report: http://springrts.com/mantis/view.php?id=3972

acgessler added a commit that referenced this pull request Aug 29, 2013
fix .3DS error "Chunk is too large" with gcc >=4.7.0 / mingw
@acgessler acgessler merged commit 0cef552 into assimp:master Aug 29, 2013
@acgessler
Copy link
Member

Thanks, very good catch! I hope this does not causes issues with older gcc versions though, but we shall see.

@joobei
Copy link

joobei commented Jun 27, 2014

I'm getting the same error on OSX with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn). Built from 3bb8150

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

Successfully merging this pull request may close these issues.

None yet

3 participants