aboutsummaryrefslogtreecommitdiff
path: root/libXt/src/Shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'libXt/src/Shell.c')
-rw-r--r--libXt/src/Shell.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/libXt/src/Shell.c b/libXt/src/Shell.c
index 2699808d3..30f45d735 100644
--- a/libXt/src/Shell.c
+++ b/libXt/src/Shell.c
@@ -87,7 +87,9 @@ in this Software without prior written authorization from The Open Group.
#include "VendorP.h"
#include <X11/Xatom.h>
#include <X11/Xlocale.h>
+#ifndef _MSC_VER
#include <X11/ICE/ICElib.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
@@ -721,9 +723,11 @@ static XtResource sessionResources[]=
Offset(session.current_dir), XtRString, (XtPointer) NULL},
{XtNprogramPath, XtCProgramPath, XtRString, sizeof(String),
Offset(session.program_path), XtRString, (XtPointer) NULL},
+#ifndef XT_NO_SM
{XtNrestartStyle, XtCRestartStyle, XtRRestartStyle, sizeof(unsigned char),
Offset(session.restart_style), XtRImmediate,
(XtPointer) SmRestartIfRunning},
+#endif
{XtNjoinSession, XtCJoinSession, XtRBoolean, sizeof(Boolean),
Offset(session.join_session), XtRImmediate, (XtPointer) True},
{XtNsaveCallback, XtCCallback, XtRCallback, sizeof(XtPointer),
@@ -1106,7 +1110,9 @@ static void ApplicationInitialize(
static void JoinSession(SessionShellWidget);
static void SetSessionProperties(SessionShellWidget, Boolean, unsigned long, unsigned long);
+#ifndef XT_NO_SM
static void StopManagingSession(SessionShellWidget, SmcConn);
+#endif
typedef struct _XtSaveYourselfRec {
XtSaveYourself next;
@@ -2653,7 +2659,6 @@ static Boolean SessionSetValues(
if ((cw->session.join_session && !nw->session.join_session) ||
(cw->session.connection && !nw->session.connection))
StopManagingSession(nw, nw->session.connection);
-#endif /* !XT_NO_SM */
if (cw->wm.client_leader != nw->wm.client_leader ||
cw->session.session_id != nw->session.session_id) {
@@ -2676,6 +2681,7 @@ static Boolean SessionSetValues(
strlen(nw->session.session_id));
}
}
+#endif /* !XT_NO_SM */
return False;
}
@@ -2762,10 +2768,12 @@ static String *EditCommand(String, String *, String *);
static Boolean ExamineToken(XtPointer);
static void GetIceEvent(XtPointer, int *, XtInputId *);
static XtCheckpointToken GetToken(Widget, int);
+#ifndef XT_NO_SM
static void XtCallCancelCallbacks(SmcConn, SmPointer);
static void XtCallDieCallbacks(SmcConn, SmPointer);
static void XtCallSaveCallbacks(SmcConn, SmPointer, int, Bool, int, Bool);
static void XtCallSaveCompleteCallbacks(SmcConn, SmPointer);
+#endif /* !XT_NO_SM */
#ifndef XT_NO_SM
static void StopManagingSession(