Merge pull request #164 from jeffplaisance/develop

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:
Konstantinos Margaritis 2023-09-04 23:11:34 +03:00 committed by GitHub
commit 75dbedeebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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