From a453665df810b1b9278ab936055cc480be83aea5 Mon Sep 17 00:00:00 2001 From: Lv Yitian <15988566900@qq.com> Date: Fri, 30 Aug 2024 15:58:53 +0800 Subject: [PATCH] chore: Fix compile error when using MinGW gcc --- jxrlib/jxrgluelib/JXRMeta.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jxrlib/jxrgluelib/JXRMeta.h b/jxrlib/jxrgluelib/JXRMeta.h index 1a0b2a0..25c1cc8 100644 --- a/jxrlib/jxrgluelib/JXRMeta.h +++ b/jxrlib/jxrgluelib/JXRMeta.h @@ -36,6 +36,16 @@ #define UNREFERENCED_PARAMETER(P) { (P) = (P); } #endif +#ifndef __in_ecount +#include +#ifdef SAL__in_ecount +#define __in_ecount(size) SAL__in_ecount(size) +#endif +#ifdef SAL__out_ecount +#define __out_ecount(size) SAL__out_ecount(size) +#endif +#endif + //================================================================ // Container //================================================================