diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c index 58e3a92bae..671bcfe0cc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2017 IBM Corporation and others. + * Copyright (c) 2000, 2018 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -4842,6 +4842,18 @@ JNIEXPORT jintLong JNICALL OS_NATIVE(NSModalPanelRunLoopMode) } #endif +#ifndef NO_NSNotFound +JNIEXPORT jintLong JNICALL OS_NATIVE(NSNotFound) + (JNIEnv *env, jclass that) +{ + jintLong rc = 0; + OS_NATIVE_ENTER(env, that, NSNotFound_FUNC); + rc = (jintLong)NSNotFound; + OS_NATIVE_EXIT(env, that, NSNotFound_FUNC); + return rc; +} +#endif + #ifndef NO_NSNumberOfColorComponents JNIEXPORT jintLong JNICALL OS_NATIVE(NSNumberOfColorComponents) (JNIEnv *env, jclass that, jintLong arg0) |