Demo: fixes for Emscripten 5.0+
This commit is contained in:
+5
-1
@@ -141,7 +141,7 @@ Index of this file:
|
|||||||
#include <inttypes.h> // PRId64/PRIu64, not avail in some MinGW headers.
|
#include <inttypes.h> // PRId64/PRIu64, not avail in some MinGW headers.
|
||||||
#endif
|
#endif
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
#include <emscripten/version.h> // __EMSCRIPTEN_major__ etc.
|
#include <emscripten/version.h> // __EMSCRIPTEN_MAJOR__ etc.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Visual Studio warnings
|
// Visual Studio warnings
|
||||||
@@ -8239,8 +8239,12 @@ void ImGui::ShowAboutWindow(bool* p_open)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
ImGui::Text("define: __EMSCRIPTEN__");
|
ImGui::Text("define: __EMSCRIPTEN__");
|
||||||
|
#ifdef __EMSCRIPTEN_MAJOR__
|
||||||
|
ImGui::Text("Emscripten: %d.%d.%d", __EMSCRIPTEN_MAJOR__, __EMSCRIPTEN_MINOR__, __EMSCRIPTEN_TINY__);
|
||||||
|
#else
|
||||||
ImGui::Text("Emscripten: %d.%d.%d", __EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__);
|
ImGui::Text("Emscripten: %d.%d.%d", __EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
ImGui::Text("define: NDEBUG");
|
ImGui::Text("define: NDEBUG");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user