]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
adding ifndef around HS_PUBLIC_API definition so that vectorscan can be statically... 164/head
authorjplaisance <jeffplaisance@gmail.com>
Tue, 27 Jun 2023 14:47:14 +0000 (09:47 -0500)
committerjeffplaisance <jeffplaisance@gmail.com>
Wed, 23 Aug 2023 16:07:56 +0000 (11:07 -0500)
src/ue2common.h

index 6fe2d0603a0ee14110b6862bede4a5091189a915..b8300dc7575e9e64a503164216ffc3a8ae9a2227 100644 (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]))