mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-26 05:40:49 +00:00
fix build with MinGW
This commit is contained in:
parent
9ca9a57a1f
commit
9671e412fe
2 changed files with 6 additions and 4 deletions
|
@ -30,6 +30,12 @@
|
|||
#include "fluid_rtkit.h"
|
||||
#endif
|
||||
|
||||
#if HAVE_PTHREAD_H && !defined(WIN32)
|
||||
// Do not include pthread on windows. It includes winsock.h, which collides with ws2tcpip.h from fluid_sys.h
|
||||
// It isn't need on Windows anyway.
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
/* WIN32 HACK - Flag used to differentiate between a file descriptor and a socket.
|
||||
* Should work, so long as no SOCKET or file descriptor ends up with this bit set. - JG */
|
||||
#ifdef _WIN32
|
||||
|
|
|
@ -97,10 +97,6 @@
|
|||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_PTHREAD_H
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_OPENMP
|
||||
#include <omp.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue