configure.ac: enable WIN32_LEAN_AND_MEAN on Windows
This commit is contained in:
parent
a98aa66620
commit
49f3855407
@ -66,6 +66,7 @@ mingw32* | windows*)
|
|||||||
src/win/mpd_win32_rc.rc
|
src/win/mpd_win32_rc.rc
|
||||||
])
|
])
|
||||||
AC_CHECK_TOOL(WINDRES, windres)
|
AC_CHECK_TOOL(WINDRES, windres)
|
||||||
|
AM_CPPFLAGS="$AM_CPPFLAGS -DWIN32_LEAN_AND_MEAN"
|
||||||
AM_CPPFLAGS="$AM_CPPFLAGS -DWINVER=0x0501"
|
AM_CPPFLAGS="$AM_CPPFLAGS -DWINVER=0x0501"
|
||||||
LIBS="$LIBS -lws2_32"
|
LIBS="$LIBS -lws2_32"
|
||||||
HAVE_WINDOWS=1
|
HAVE_WINDOWS=1
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
#include "output_api.h"
|
#include "output_api.h"
|
||||||
#include "output/winmm_output_plugin.h"
|
#include "output/winmm_output_plugin.h"
|
||||||
|
|
||||||
|
#include <mmsystem.h>
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
#undef G_LOG_DOMAIN
|
#undef G_LOG_DOMAIN
|
||||||
#define G_LOG_DOMAIN "winmm_output"
|
#define G_LOG_DOMAIN "winmm_output"
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#ifdef ENABLE_WINMM_OUTPUT
|
#ifdef ENABLE_WINMM_OUTPUT
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <mmsystem.h>
|
||||||
|
|
||||||
struct winmm_output;
|
struct winmm_output;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user