/*
unzstd -- .warc.zst decompressor
-Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2021-2023 Sergey Matveev <stargrave@stargrave.org>
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
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/endian.h>
#include <zstd.h>
#include <sysexits.h>
#endif // __FreeBSD__
+static uint32_t
+le32dec(const char buf[4])
+{
+ return (uint32_t)(buf[3]) << 24 | (uint32_t)(buf[2]) << 16 |
+ (uint32_t)(buf[1]) << 8 | (uint32_t)(buf[0]);
+}
+
int
main(int argc, char **argv)
{