summaryrefslogtreecommitdiff
path: root/lib/libXt/include/X11/ThreadsI.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libXt/include/X11/ThreadsI.h')
-rw-r--r--lib/libXt/include/X11/ThreadsI.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libXt/include/X11/ThreadsI.h b/lib/libXt/include/X11/ThreadsI.h
index 1492d7711..f07fe290f 100644
--- a/lib/libXt/include/X11/ThreadsI.h
+++ b/lib/libXt/include/X11/ThreadsI.h
@@ -81,6 +81,8 @@ typedef void (*ThreadAppRestoreLockProc)(
Boolean* /* pushed_thread */
);
+_XFUNCPROTOBEGIN
+
extern void (*_XtProcessLock)(
void
);
@@ -93,6 +95,8 @@ extern void (*_XtInitAppLock)(
XtAppContext /* app */
);
+_XFUNCPROTOEND
+
#define INIT_APP_LOCK(app) if(_XtInitAppLock) (*_XtInitAppLock)(app)
#define FREE_APP_LOCK(app) if(app && app->free_lock)(*app->free_lock)(app)
@@ -111,7 +115,7 @@ extern void (*_XtInitAppLock)(
XtWidgetToApplicationContext(w) : NULL)
#define DPY_TO_APPCON(d) \
- XtAppContext app = (_XtProcessLock ? XtDisplayToApplicationContext(d): 0)
+ XtAppContext app = (_XtProcessLock ? XtDisplayToApplicationContext(d): NULL)
#else /* defined(XTHREADS) */