From edba76c826a54b01c0fe033c797b33e0165539ca Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 11 Oct 2021 11:25:35 +0200 Subject: [PATCH] include: Don't define math functions or constants in wine/port.h. Signed-off-by: Alexandre Julliard --- dlls/ntdll/unix/loader.c | 1 + dlls/opengl32/wgl.c | 1 + dlls/windowscodecs/libtiff.c | 1 + dlls/winex11.drv/wintab.c | 1 + include/wine/port.h | 13 ------------- 5 files changed, 4 insertions(+), 13 deletions(-) diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c index dfc0d4c9a09..df309814c0c 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -30,6 +30,7 @@ #include #include #include +#include #ifdef HAVE_LINK_H # include #endif diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index cf46c6dfa8a..e2b514ffca9 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "windef.h" #include "winbase.h" diff --git a/dlls/windowscodecs/libtiff.c b/dlls/windowscodecs/libtiff.c index 1489fbe85fa..32d1f7bd8cb 100644 --- a/dlls/windowscodecs/libtiff.c +++ b/dlls/windowscodecs/libtiff.c @@ -25,6 +25,7 @@ #include "wine/port.h" #include +#include #ifdef HAVE_UNISTD_H #include #endif diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c index 5cfc2b3a38d..c141ae88e71 100644 --- a/dlls/winex11.drv/wintab.c +++ b/dlls/winex11.drv/wintab.c @@ -23,6 +23,7 @@ #include #include +#include #include "windef.h" #include "winbase.h" diff --git a/include/wine/port.h b/include/wine/port.h index 795a61f741b..00d3a8b5e3c 100644 --- a/include/wine/port.h +++ b/include/wine/port.h @@ -30,7 +30,6 @@ #endif #include -#include #include #include #include @@ -70,16 +69,4 @@ static inline int symlink(const char *from, const char *to) { errno = ENOSYS; re #endif /* _WIN32 */ -/**************************************************************** - * Constants - */ - -#ifndef M_PI -#define M_PI 3.14159265358979323846 -#endif - -#ifndef M_PI_2 -#define M_PI_2 1.570796326794896619 -#endif - #endif /* !defined(__WINE_WINE_PORT_H) */