Skip to content

Commit 97f8a2e

Browse files
committed
Compile as C17 code
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 #1865 .
1 parent e4fc88a commit 97f8a2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ CFLAGS := $(CFLAGS) \
106106
-DLINUX -DGTK \
107107
-I$(SWT_JAVA_HOME)/include \
108108
-I$(SWT_JAVA_HOME)/include/linux \
109+
-std=gnu17 \
109110
${SWT_PTR_CFLAGS}
110111
LFLAGS = -shared -fPIC ${SWT_LFLAGS}
111112

0 commit comments

Comments
 (0)