X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=libexfat%2Fplatform.h;h=9bd125a100a6b759b25704005b2e8f52b4d360f7;hb=aa936eafe06370808f777685b4a395cfe283e8bb;hp=9ab3155d36bafc823f60a93d00679e1fa8a686c5;hpb=21b86fc27b40d369e0f44d19426f5127e8a6cbc2;p=sven%2Ffuse-exfat.git diff --git a/libexfat/platform.h b/libexfat/platform.h index 9ab3155..9bd125a 100644 --- a/libexfat/platform.h +++ b/libexfat/platform.h @@ -4,7 +4,7 @@ same kernel can use different libc implementations. Free exFAT implementation. - Copyright (C) 2010-2018 Andrew Nayenko + Copyright (C) 2010-2023 Andrew Nayenko This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -56,6 +56,16 @@ #define EXFAT_LITTLE_ENDIAN _LITTLE_ENDIAN #define EXFAT_BIG_ENDIAN _BIG_ENDIAN +#elif defined(__sun) + +#include +#define exfat_bswap16(x) bswap_16(x) +#define exfat_bswap32(x) bswap_32(x) +#define exfat_bswap64(x) bswap_64(x) +#define EXFAT_BYTE_ORDER __BYTE_ORDER +#define EXFAT_LITTLE_ENDIAN __LITTLE_ENDIAN +#define EXFAT_BIG_ENDIAN __BIG_ENDIAN + #else #error Unknown platform #endif