From 41ab709ec01be33bd714a914d9287806660a8f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Thu, 27 Mar 2025 08:32:13 +0200 Subject: [PATCH] Compile as C17 code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC 15 defaults to C23 standard but it's not feasible to use it as even Xlib.h is not compatible yet e.g. ``` /usr/include/X11/Xlib.h:2105:5: note: expected ‘int (*)(Display *, XEvent *, char *)’ but argument is of type ‘int (*)(void)’ 2105 | Bool (*) ( ``` Fixes https://github.com/eclipse-platform/eclipse.platform.swt/issues/1865 . --- .../org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak index 83e76f5937d..1791209a504 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak @@ -106,6 +106,7 @@ CFLAGS := $(CFLAGS) \ -DLINUX -DGTK \ -I$(SWT_JAVA_HOME)/include \ -I$(SWT_JAVA_HOME)/include/linux \ + -std=gnu17 \ ${SWT_PTR_CFLAGS} LFLAGS = -shared -fPIC ${SWT_LFLAGS}