From e9848b6622e1226286e3b0398fa8aebd30069bef Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Fri, 24 Apr 2026 17:43:33 +0300 Subject: [PATCH] Fix blake2 for Watcom --- .github/workflows/build-watcom.yml | 2 +- src/libs/blake2.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-watcom.yml b/.github/workflows/build-watcom.yml index d7912f0..075caad 100644 --- a/.github/workflows/build-watcom.yml +++ b/.github/workflows/build-watcom.yml @@ -2,7 +2,7 @@ name: Build Win32 3proxy-lite with Watcom on: push: - branches: [ "master", "test-ci" ] + branches: [ "master", "test-ci" ] paths: [ 'RELEASE', '.github/workflows/build-watcom.yml' ] jobs: diff --git a/src/libs/blake2.h b/src/libs/blake2.h index ca39030..a51262c 100644 --- a/src/libs/blake2.h +++ b/src/libs/blake2.h @@ -18,7 +18,9 @@ #include #include -#if defined(_MSC_VER) +#if defined(WATCOM) +#define BLAKE2_PACKED(x) _Packed x +#elif defined(_MSC_VER) #define BLAKE2_PACKED(x) __pragma(pack(push, 1)) x __pragma(pack(pop)) #else #define BLAKE2_PACKED(x) x __attribute__((packed))