include: Don't define math functions or constants in wine/port.h.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-10-11 11:25:35 +02:00
parent 2afb4fd044
commit edba76c826
5 changed files with 4 additions and 13 deletions

View File

@ -30,6 +30,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <signal.h>
#include <math.h>
#ifdef HAVE_LINK_H
# include <link.h>
#endif

View File

@ -24,6 +24,7 @@
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "windef.h"
#include "winbase.h"

View File

@ -25,6 +25,7 @@
#include "wine/port.h"
#include <stdarg.h>
#include <math.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -23,6 +23,7 @@
#include <stdlib.h>
#include <stdarg.h>
#include <math.h>
#include "windef.h"
#include "winbase.h"

View File

@ -30,7 +30,6 @@
#endif
#include <fcntl.h>
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
@ -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) */