vcpkg/ports/antlr4/export_guid.patch

23 строки
917 B
Diff

diff -urN a/runtime/src/support/Guid.h b/runtime/src/support/Guid.h
--- a/runtime/src/support/Guid.h
+++ b/runtime/src/support/Guid.h
@@ -42,7 +42,7 @@ namespace antlrcpp {
// 16 byte value that can be passed around by value. It also supports
// conversion to string (via the stream operator <<) and conversion from a
// string via constructor.
-class Guid final {
+class ANTLR4CPP_PUBLIC Guid final {
public:
using size_type = typename std::array<uint8_t, 16>::size_type;
using pointer = typename std::array<uint8_t, 16>::pointer;
@@ -131,7 +131,7 @@ private:
// function would no longer be cross-platform if we parameterized the android
// version. Instead, construction of the GuidGenerator may be different on
// each platform, but the use of newGuid is uniform.
-class GuidGenerator final {
+class ANTLR4CPP_PUBLIC GuidGenerator final {
public:
#ifdef GUID_ANDROID
GuidGenerator(JNIEnv *env);