vcpkg/ports/antlr4/export_guid.patch

23 lines
917 B
Diff
Raw Normal View History

2022-01-14 01:23:06 +08:00
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.
2022-01-14 01:23:06 +08:00
-class Guid final {
+class ANTLR4CPP_PUBLIC Guid final {
public:
2022-01-14 01:23:06 +08:00
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.
2022-01-14 01:23:06 +08:00
-class GuidGenerator final {
+class ANTLR4CPP_PUBLIC GuidGenerator final {
public:
#ifdef GUID_ANDROID
2022-01-14 01:23:06 +08:00
GuidGenerator(JNIEnv *env);