mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
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:
commit
75dbedeebe
@ -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]))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user