Clean up #includes

Patch-from: lvqcl <lvqcl.mail@gmail.com>
This commit is contained in:
Erik de Castro Lopo 2016-01-24 08:08:50 +11:00
parent e0b406f664
commit 6c03ab204a
3 changed files with 8 additions and 1 deletions

View File

@ -45,7 +45,9 @@ static inline unsigned short __builtin_bswap16(unsigned short a)
#define ENDSWAP_32(x) (__builtin_bswap32 (x))
#define ENDSWAP_64(x) (__builtin_bswap64 (x))
#elif defined _MSC_VER /* Windows. Apparently in <stdlib.h>. */
#elif defined _MSC_VER /* Windows */
#include <stdlib.h>
#define ENDSWAP_16(x) (_byteswap_ushort (x))
#define ENDSWAP_32(x) (_byteswap_ulong (x))

View File

@ -39,6 +39,10 @@
#include <stdlib.h> /* for malloc() */
#include <string.h> /* for memcpy() */
#include <sys/types.h> /* for off_t */
#ifdef _WIN32
#include <windows.h> /* for GetFileType() */
#include <io.h> /* for _get_osfhandle() */
#endif
#include "share/compat.h"
#include "FLAC/assert.h"
#include "FLAC/stream_decoder.h"

View File

@ -25,6 +25,7 @@
#include "options.h"
#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include "share/compat.h"
int main(int argc, char *argv[])