Skip to content

Commit 8c314f5

Browse files
committed
Fix Win32 build
1 parent 0bf5c92 commit 8c314f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ function buildSDL() {
161161
dnl avoid using MSCRT versions of printf for long double
162162
PACKAGE_CFLAGS="${PACKAGE_CFLAGS} -D__USE_MINGW_ANSI_STDIO"
163163

164+
AC_DEFINE(_USE_MATH_DEFINES, 1, [for M_PI in math.h])
165+
AC_DEFINE(realpath(P, R), _fullpath((char *)P, R, PATH_MAX), [add missing realpath for system.cpp])
166+
164167
dnl do not depend on cygwin.dll under cygwin build
165168
PACKAGE_CFLAGS="${PACKAGE_CFLAGS} -mms-bitfields"
166169
PACKAGE_LIBS="${PACKAGE_LIBS} -lwsock32 -lws2_32 -static-libgcc -static-libstdc++"

0 commit comments

Comments
 (0)