adding ifndef around HS_PUBLIC_API definition so that vectorscan can be statically linked into another shared library without exporting symbols

This commit is contained in:
jplaisance 2023-06-27 09:47:14 -05:00 committed by jeffplaisance
parent 38431d1117
commit 4bc70b37a7

View File

@ -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]))