Use portable endian macros from config.h

merge-requests/1/head
Mattias Ellert 2011-10-30 10:15:54 +01:00
rodzic dd1b8a07fd
commit 97e89c3ad7
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -1,3 +1,6 @@
2011-10-30 Mattias Ellert <mattias.ellert@fysast.uu.se>
* backend/kvs40xx.h: Use portable endian macro from config.h
2011-10-21 Stéphane Voltz <stef.dev@free.fr>
* backend/genesys.c backend/genesys.h backend/genesys_devices.c
backend/genesys_gl*.c backend/genesys_gl843.h

Wyświetl plik

@ -8,7 +8,7 @@
Panasonic KV-S40xx USB-SCSI scanner driver.
*/
#include <endian.h>
#include "../include/sane/config.h"
#include <semaphore.h>
#undef BACKEND_NAME
@ -226,7 +226,7 @@ swap_bytes32 (u32 x)
(x & (u32) 0x0000ff00UL) << 8 | (x & (u32) 0x00ff0000UL) >> 8;
}
#if __BYTE_ORDER == __BIG_ENDIAN
#if WORDS_BIGENDIAN
static inline void
set24 (u8 * p, u32 x)
{