Skip to content

Commit 71761f5

Browse files
authored
Minor cleanup of html5.h. NFC (#23526)
1 parent 7591f1c commit 71761f5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

system/include/emscripten/html5.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212

1313
#include <emscripten/emscripten.h>
1414

15-
// Include eventloop.h and console.h for compat with older version of this
16-
// header that used to define these functions.
15+
// Include eventloop.h, console.h and html5_webgl.h for compat with older
16+
// version of this header that used to define these functions.
1717
#include <emscripten/eventloop.h>
1818
#include <emscripten/console.h>
19+
#include <emscripten/html5_webgl.h>
1920

2021
#ifdef __cplusplus
2122
extern "C" {
@@ -331,8 +332,7 @@ EMSCRIPTEN_RESULT emscripten_set_visibilitychange_callback_on_thread(void *userD
331332
EMSCRIPTEN_RESULT emscripten_get_visibility_status(EmscriptenVisibilityChangeEvent *visibilityStatus __attribute__((nonnull)));
332333

333334

334-
typedef struct EmscriptenTouchPoint
335-
{
335+
typedef struct EmscriptenTouchPoint {
336336
int identifier;
337337
int screenX;
338338
int screenY;
@@ -472,6 +472,3 @@ double emscripten_performance_now(void);
472472
#ifdef __cplusplus
473473
} // ~extern "C"
474474
#endif
475-
476-
// For backwards compatibility, always include html5_webgl.h from html5.h
477-
#include <emscripten/html5_webgl.h>

0 commit comments

Comments
 (0)