From 7193bd9faba506a954fd965166a1501edc8f7ebd Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 3 Sep 2025 13:58:46 +0200 Subject: [PATCH] os: osdep.h: workaround for win32 define `CreateWindow` We need to undef this win32 symbol, otherwise it's conflicting with our `CreateWindow` fields. Signed-off-by: Enrico Weigelt, metux IT consult --- os/osdep.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/osdep.h b/os/osdep.h index 54f3322c98..060856c9b3 100644 --- a/os/osdep.h +++ b/os/osdep.h @@ -127,6 +127,8 @@ _X_EXPORT Bool TimerForce(OsTimerPtr); #ifdef WIN32 #include +#undef CreateWindow + const char *Win32TempDir(void); static inline void Fclose(void *f) { fclose(f); }