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

Summary: Emscripten build broken due to missing #include
Product: SDL Reporter: Caleb Cornett <spydog>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: Other   
OS: Other   

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.