Skip to content

Fix some things for new rust version #32

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

Merged
merged 3 commits into from
Jan 8, 2014

Conversation

jhasse
Copy link
Contributor

@jhasse jhasse commented Jan 5, 2014

Some changes to make rust-sdl2 work with latest rust master.

It seems that libnative doesn't work with rustpkg yet. I had to do

sudo cp /usr/local/lib/rustc/x86_64-unknown-linux-gnu/lib/libnative-cf55a53a-0.9.so /usr/local/lib/

before it compiles.

@jhasse
Copy link
Contributor Author

jhasse commented Jan 5, 2014

Ups I should have checked the pull requests first. Didn't know about #31.

@jhasse
Copy link
Contributor Author

jhasse commented Jan 5, 2014

extern mod native should work with rustpkg when this gets merged: rust-lang/rust#11330

AngryLawyer added a commit that referenced this pull request Jan 8, 2014
Fix some things for new rust version
@AngryLawyer AngryLawyer merged commit 4be5275 into Rust-SDL2:master Jan 8, 2014
@AngryLawyer
Copy link
Member

Cheers for that, looks great

@jhasse jhasse deleted the patch-newrust branch January 8, 2014 18:51
Cobrand pushed a commit that referenced this pull request Dec 2, 2016
Sdl2MixerContext is created with init, and has drop implemented. This
means that it will automatically drop at the end, after Music would
drop, solving Issue #32. Additionally, I also changed init to check
returned flags and produce an error if every single flag is not
initialized. This is what InitFlags.to_string() is for.

I also updated examples/demo.rs to work with these new changes.

Finally, I added some documentation and tweaked some functions
slightly. I also ran rustfmt on the project.
Cobrand pushed a commit that referenced this pull request Dec 2, 2016
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.

2 participants