From 4bc70b37a72c1302dbd5344a4d4ebfb9b36bf0e2 Mon Sep 17 00:00:00 2001 From: jplaisance Date: Tue, 27 Jun 2023 09:47:14 -0500 Subject: [PATCH] adding ifndef around HS_PUBLIC_API definition so that vectorscan can be statically linked into another shared library without exporting symbols --- src/ue2common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ue2common.h b/src/ue2common.h index 6fe2d060..b8300dc7 100644 --- a/src/ue2common.h +++ b/src/ue2common.h @@ -73,7 +73,9 @@ typedef u32 ReportID; /* Shorthand for attribute to mark a function as part of our public API. * Functions without this attribute will be hidden. */ +#ifndef HS_PUBLIC_API #define HS_PUBLIC_API __attribute__((visibility("default"))) +#endif #define ARRAY_LENGTH(a) (sizeof(a)/sizeof((a)[0]))