Fix blake2 for Watcom
Some checks failed
RPM/DEB build aarch64 / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
RPM/DEB build armhf / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
RPM/DEB build x86-64 / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
Build Win32 3proxy-lite with Watcom / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
Build Win32 3proxy with MSVC / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
Build Win64 3proxy with MSVC / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
Build Win-arm64 3proxy with MSVC / ${{ matrix.target }} (windows-2022) (push) Has been cancelled

This commit is contained in:
Vladimir Dubrovin 2026-04-24 17:43:33 +03:00
parent e419a21cf9
commit e9848b6622
2 changed files with 4 additions and 2 deletions

View File

@ -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:

View File

@ -18,7 +18,9 @@
#include <stddef.h>
#include <stdint.h>
#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))