Fix non-portable endian.h include issue (315209)

merge-requests/1/head
Olaf Meeuwissen 2015-11-08 18:36:57 +09:00
rodzic d7516a11eb
commit b0a99cb489
1 zmienionych plików z 1 dodań i 8 usunięć

Wyświetl plik

@ -100,15 +100,8 @@
#include <stdio.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <endian.h>
/* When creating the release backend, make complains about unresolved external
* le16toh, although it finds the include <endian.h> */
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define le16toh(x) (x)
#else
#define le16toh(x) __bswap_16 (x)
#endif
#include "byteorder.h"
static void buffer_update_read_index(struct Pieusb_Read_Buffer* buffer, int increment);