We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4827 - Emscripten build broken due to missing #include
Summary: Emscripten build broken due to missing #include
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: Other Other
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-16 16:40 UTC by Caleb Cornett
Modified: 2019-10-16 17:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Cornett 2019-10-16 16:40:33 UTC
This recent revision broke building SDL2 for Emscripten:
https://hg.libsdl.org/SDL/rev/eaac8e676d45

Building fails with an error about implicit function declaration for the emscripten_* calls. It appears to be missing:

#if (__EMSCRIPTEN__)
#include <emscripten.h>
#endif

at the top of the file.
Comment 1 Ryan C. Gordon 2019-10-16 17:55:26 UTC
This patch is now https://hg.libsdl.org/SDL/rev/d1a5e3cd0ae8, thanks!

--ryan.