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

[android] Include stdint.h for uint32_t in UIWebViewImpl-android.h #14727

Closed
wants to merge 1 commit into from
Closed

Conversation

dmsck
Copy link

@dmsck dmsck commented Dec 17, 2015

This fixes compilation error when building cocos2d-x demo by CrystaX NDK.

According to POSIX, uint32_t is defined in "stdint.h", so if you use it in code, you should include "stdint.h".

In Google's Android NDK it works because their "iosfwd" include "stdint.h" implicitly; however, it's not a requirement and you shouldn't rely on that.

With this fix, cocos2d-x demo getting built no matter which NDK is used - CrystaX or Google's one.

Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
@dmsck
Copy link
Author

dmsck commented Dec 17, 2015

While checking this pull request, Jenkins failed with error, not related to changes I did. It lost connection to ios runner.

Android build was ok, so I suppose it's enough to accept this pull request.

@WenhaiLin
Copy link
Contributor

[ci rebuild]

1 similar comment
@WenhaiLin
Copy link
Contributor

[ci rebuild]

@zilongshanren
Copy link
Member

@dmcrystax
Thanks, this PR will be merged in the next release cycle.

@zilongshanren
Copy link
Member

@dmcrystax duplicated with #14712

@minggo minggo removed this from the 3.12 milestone Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants