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 {
|
2019-03-09 14:09:33 +08:00
|
|
|
// 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 {
|
2019-03-09 14:09:33 +08:00
|
|
|
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:
|
2019-03-09 14:09:33 +08:00
|
|
|
// 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 {
|
2019-03-09 14:09:33 +08:00
|
|
|
public:
|
|
|
|
#ifdef GUID_ANDROID
|
2022-01-14 01:23:06 +08:00
|
|
|
GuidGenerator(JNIEnv *env);
|
|
|
|
|