From 1b732bfc5c3282651f14863fea2e5fbd9cd63f31 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 29 Dec 2022 00:59:56 +0000 Subject: [PATCH] Use local pugl wasm code Signed-off-by: falkTX --- dgl/src/pugl-extra/wasm.c | 2 +- dgl/src/pugl-extra/wasm.h | 3 +-- dgl/src/pugl-extra/wasm_gl.c | 2 +- dgl/src/pugl-extra/wasm_stub.c | 4 +--- dgl/src/pugl.cpp | 6 +++--- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/dgl/src/pugl-extra/wasm.c b/dgl/src/pugl-extra/wasm.c index 25a69044..0f80a3c0 100644 --- a/dgl/src/pugl-extra/wasm.c +++ b/dgl/src/pugl-extra/wasm.c @@ -4,7 +4,7 @@ #include "wasm.h" -#include "internal.h" +#include "../pugl-upstream/src/internal.h" #include diff --git a/dgl/src/pugl-extra/wasm.h b/dgl/src/pugl-extra/wasm.h index ffc0ffba..86da7631 100644 --- a/dgl/src/pugl-extra/wasm.h +++ b/dgl/src/pugl-extra/wasm.h @@ -5,8 +5,7 @@ #ifndef PUGL_SRC_WASM_H #define PUGL_SRC_WASM_H -// #include "attributes.h" -#include "types.h" +#include "../pugl-upstream/src/types.h" #include "pugl/pugl.h" diff --git a/dgl/src/pugl-extra/wasm_gl.c b/dgl/src/pugl-extra/wasm_gl.c index da212bb2..3d875421 100644 --- a/dgl/src/pugl-extra/wasm_gl.c +++ b/dgl/src/pugl-extra/wasm_gl.c @@ -2,7 +2,7 @@ // Copyright 2021-2022 Filipe Coelho // SPDX-License-Identifier: ISC -#include "stub.h" +#include "../pugl-upstream/src/stub.h" #include "wasm.h" #include "pugl/pugl.h" diff --git a/dgl/src/pugl-extra/wasm_stub.c b/dgl/src/pugl-extra/wasm_stub.c index 8cf2f49d..20e018fe 100644 --- a/dgl/src/pugl-extra/wasm_stub.c +++ b/dgl/src/pugl-extra/wasm_stub.c @@ -4,9 +4,7 @@ #include "pugl/stub.h" -#include "stub.h" -// #include "types.h" -// #include "wasm.h" +#include "../pugl-upstream/src/stub.h" #include "pugl/pugl.h" diff --git a/dgl/src/pugl.cpp b/dgl/src/pugl.cpp index 080fef9e..98260b78 100644 --- a/dgl/src/pugl.cpp +++ b/dgl/src/pugl.cpp @@ -146,10 +146,10 @@ START_NAMESPACE_DGL # endif # pragma clang diagnostic pop #elif defined(DISTRHO_OS_WASM) -# include "pugl-upstream/src/wasm.c" -# include "pugl-upstream/src/wasm_stub.c" +# include "pugl-extra/wasm.c" +# include "pugl-extra/wasm_stub.c" # ifdef DGL_OPENGL -# include "pugl-upstream/src/wasm_gl.c" +# include "pugl-extra/wasm_gl.c" # endif #elif defined(DISTRHO_OS_WINDOWS) # include "pugl-upstream/src/win.c"