X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-windows.h;h=4af212d9d195a2a44e0f88bb7f9ce187bc14738c;hp=db4127b3a2e35eed0fa796eec671e7334ad2f21e;hb=232f9b73353e0322fe135d3029beecedaed7a17b;hpb=ff2451922f21826c2047208c2c3963843b1ffdcc;ds=sidebyside diff --git a/os/os-windows.h b/os/os-windows.h index db4127b3..4af212d9 100644 --- a/os/os-windows.h +++ b/os/os-windows.h @@ -5,6 +5,7 @@ #include #include #include +#include #include "../smalloc.h" #include "../file.h" @@ -26,6 +27,11 @@ #define FIO_PREFERRED_ENGINE "windowsaio" +#define FIO_LITTLE_ENDIAN +#define fio_swap16(x) _byteswap_ushort(x) +#define fio_swap32(x) _byteswap_ulong(x) +#define fio_swap64(x) _byteswap_uint64(x) + typedef off_t off64_t; typedef struct {