https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cd52bbdf0359671f8757e…
commit cd52bbdf0359671f8757eb71c9a1d5043b4e74be
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Dec 16 17:38:09 2018 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Dec 16 17:38:09 2018 +0100
[BTRFS] Fix MSVC build.
---
drivers/filesystems/btrfs/compress.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/filesystems/btrfs/compress.c b/drivers/filesystems/btrfs/compress.c
index 598171b678..3c9a4d6386 100644
--- a/drivers/filesystems/btrfs/compress.c
+++ b/drivers/filesystems/btrfs/compress.c
@@ -94,7 +94,11 @@ typedef struct {
static void* zstd_malloc(void* opaque, size_t size);
static void zstd_free(void* opaque, void* address);
+#ifndef __REACTOS__
ZSTD_customMem zstd_mem = { .customAlloc = zstd_malloc, .customFree = zstd_free, .opaque
= NULL };
+#else
+ZSTD_customMem zstd_mem = { zstd_malloc, zstd_free, NULL };
+#endif
static UINT8 lzo_nextbyte(lzo_stream* stream) {
UINT8 c;