e6c21e1
From 39e14aa3c638f36173f2a8747f524b9273857bee Mon Sep 17 00:00:00 2001
e6c21e1
From: Mat Booth <mat.booth@redhat.com>
e6c21e1
Date: Tue, 28 Jan 2020 15:57:33 +0000
e6c21e1
Subject: [PATCH] Bug 559637 - SWT fails to build with GCC 10
e6c21e1
e6c21e1
Fixes build failure caused by global variable with multiple definitions
e6c21e1
by declaring it with "extern" in the header
e6c21e1
e6c21e1
Change-Id: Id34c07cddde21baa4c00e97eb4a457855c37906c
e6c21e1
Signed-off-by: Mat Booth <mat.booth@redhat.com>
e6c21e1
---
e6c21e1
e6c21e1
diff --git a/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h b/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h
e6c21e1
index e56bd8f..8389585 100644
e6c21e1
--- "a/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h"
e6c21e1
+++ "b/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h"
e6c21e1
@@ -105,7 +105,7 @@
e6c21e1
 glong g_utf8_offset_to_utf16_offset(const gchar*, glong);
e6c21e1
 
e6c21e1
 // Cached JVM pointer: see bug 521487.
e6c21e1
-JavaVM *cached_jvm;
e6c21e1
+extern JavaVM *cached_jvm;
e6c21e1
 
e6c21e1
 #define SWT_TYPE_FIXED (swt_fixed_get_type ())
e6c21e1
 #define SWT_FIXED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWT_TYPE_FIXED, SwtFixed))