diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/build.sh b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/build.sh index 95654493c5..5c2351dced 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/build.sh +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/build.sh @@ -29,6 +29,6 @@ elif [ "x${MODEL}" = "xarm64" ] || [ "x${MODEL}" = "xaarch64" ]; then fi fi -export MACOSX_DEPLOYMENT_TARGET=10.10 +export MACOSX_DEPLOYMENT_TARGET=11 make -f make_macosx.mak $1 $2 $3 $4 $5 $6 $7 $8 $9 \ No newline at end of file diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/make_macosx.mak b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/make_macosx.mak index 8ebba0add7..000e034a41 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/make_macosx.mak +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/make_macosx.mak @@ -34,6 +34,7 @@ AWT_OBJECTS = swt_awt.o #SWT_DEBUG = -g CFLAGS = -c -xobjective-c -Wall $(ARCHS) $(SWT_DEBUG) -DUSE_ASSEMBLER -DCOCOA -DATOMIC \ + -Wunguarded-availability \ -I $(SWT_JAVA_HOME)/include \ -I $(SWT_JAVA_HOME)/include/darwin \ -I /System/Library/Frameworks/Cocoa.framework/Headers \ diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java index 7159b83344..0aa4d642a4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java @@ -950,8 +950,8 @@ protected void create (DeviceData data) { } void createDisplay (DeviceData data) { - if (OS.VERSION < OS.VERSION (10, 10, 0)) { - System.out.println ("***WARNING: SWT requires MacOS X version 10.10 or greater"); //$NON-NLS-1$ + if (OS.VERSION < OS.VERSION (11, 0, 0)) { + System.out.println ("***WARNING: SWT requires macOS version 11 or greater"); //$NON-NLS-1$ error(SWT.ERROR_NOT_IMPLEMENTED); } @@ -2522,10 +2522,10 @@ public void run() { /** * Checks if the native item height should be enforced as a minimum (which is true by default). - * + * * Newer version of macOS may use a default item height in Table, Tree and List * controls that is larger than what is traditionally expected. - * + * * Enforcing the default height as a minimum may break existing assumptions and * render UI elements with a padding that may be considered too large. */