mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fixes for windows builds (SF#1676822: https://sourceforge.net/tracker2/?func=detail&aid=1676822&group_id=13478&atid=113478)
This commit is contained in:
@@ -36,13 +36,16 @@
|
||||
#include <stdlib.h> /* for malloc() */
|
||||
#include <string.h> /* for memcpy(), memset() */
|
||||
#ifdef _MSC_VER
|
||||
#include <winsock.h> /* for ntohl() */
|
||||
# include <winsock.h> /* for ntohl() */
|
||||
# if _MSC_VER >= 1310
|
||||
# include <winsock2.h> /* for ntohl(), sometimes it is not in winsock.h */
|
||||
# endif
|
||||
#elif defined FLAC__SYS_DARWIN
|
||||
#include <machine/endian.h> /* for ntohl() */
|
||||
# include <machine/endian.h> /* for ntohl() */
|
||||
#elif defined __MINGW32__
|
||||
#include <winsock.h> /* for ntohl() */
|
||||
# include <winsock.h> /* for ntohl() */
|
||||
#else
|
||||
#include <netinet/in.h> /* for ntohl() */
|
||||
# include <netinet/in.h> /* for ntohl() */
|
||||
#endif
|
||||
#include "private/bitmath.h"
|
||||
#include "private/bitreader.h"
|
||||
|
||||
Reference in New Issue
Block a user