We only need to edit a few files to get Emscripten working correctly. For the sake of simplicity and compactness, only the affected sections of code will be included (rather than the entire file). Let's work through the files in the same order as the previous section and start with constants.h.