From 23f3401b59894d30216c01fcf83385e2fb5cd6df Mon Sep 17 00:00:00 2001 From: Nishi Date: Sun, 27 Sep 2026 07:23:30 +0900 Subject: [PATCH] ok --- bindgen.cc | 2 +- src/widget/direct3d9.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bindgen.cc b/bindgen.cc index b6a840d..54f2efd 100644 --- a/bindgen.cc +++ b/bindgen.cc @@ -481,7 +481,7 @@ static void scan_widget(xl_node_t* node) { OFS = std::ofstream("src/widget/" + lowercase(name) + ".cc"); - if(name == "OpenGL" || name == "Vulkan") OFS << "#define MW_" + uppercase(name) + "_NO_INCLUDE" << std::endl; + if(name == "OpenGL" || name == "Vulkan" || name == "Direct3D9") OFS << "#define MW_" + uppercase(name) + "_NO_INCLUDE" << std::endl; OFS << "#include " << std::endl; OFS << std::endl; diff --git a/src/widget/direct3d9.cc b/src/widget/direct3d9.cc index 8498ef7..14a6ff6 100644 --- a/src/widget/direct3d9.cc +++ b/src/widget/direct3d9.cc @@ -1,3 +1,4 @@ +#define MW_DIRECT3D9_NO_INCLUDE #include MwCXX::Direct3D9::Direct3D9(MwWidget widget, MwCXX::Base* parent)