Linux compilation of dtcm (Calendar), (Matthew Howkins)

This commit is contained in:
Peter Howkins
2012-04-11 17:33:26 +01:00
parent 5388cb4314
commit cc1d109aa9
27 changed files with 117 additions and 32 deletions

View File

@@ -47,6 +47,12 @@ EXTRA_CCOPTIONS = -xstrconst -Xc -v
EXTRA_LIBRARIES = $(FNS_EXTRA_LIBS)
#endif
XCOMM On Linux once you link against a C++ library the whole program
XCOMM has to be linked with the C++ linker
#if defined(LinuxDistribution)
CCLINK = $(CXX)
#endif
PROG1 = dtcm
SRCS1 = MonthPanel.c RFCMIME.c about.c \
alarm.c blist.c browser.c \

View File

@@ -69,6 +69,9 @@
#define XOS_USE_XT_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#undef SVR4
#endif
#include <X11/Xos_r.h>
/*

View File

@@ -131,6 +131,9 @@ static char sccsid[] = "@(#)calendarA.c 1.196 95/04/12 Copyr 1991 Sun Microsyst
#include "cmtt.h"
#endif
#if defined(linux)
#undef SVR4
#endif
#include <X11/Xos.h>
#include <errno.h>
#ifdef X_NOT_STDC_ENV

View File

@@ -81,6 +81,9 @@ static char sccsid[] = "@(#)dayglance.c 1.76 95/04/24 Copyr 1991 Sun Microsystem
#define XOS_USE_XT_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#undef SVR4
#endif
#include <X11/Xos_r.h>
extern int debug;

View File

@@ -60,6 +60,9 @@
#define XOS_USE_XT_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#undef SVR4
#endif
#include <X11/Xos_r.h>
static void layout_labels(Widget, Widget, Widget, Widget);

View File

@@ -69,6 +69,9 @@ static char sccsid[] = "@(#)format.c 1.27 95/01/19 Copyr 1991 Sun Microsystems,
#define XOS_USE_XT_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#undef SVR4
#endif
#include <X11/Xos_r.h>
/*

View File

@@ -101,6 +101,9 @@ static char sccsid[] = "@(#)monthglance.c 1.82 95/07/27 Copyr 1994 Sun Microsys
#define XOS_USE_XT_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#undef SVR4
#endif
#include <X11/Xos_r.h>
static void paint_day_entries(Tick, int, int, int, int,

View File

@@ -89,7 +89,11 @@ static char sccsid[] = "@(#)tempbr.c 1.48 95/03/28 Copyr 1991 Sun Microsystems,
static void tb_cancel_cb();
static void tb_close_cb();
static void tempbr_show_cb(Widget w, XtPointer data, XtPointer cbs);
#if defined(linux)
#include <string.h>
#else
extern char *strdup(const char *);
#endif
#ifdef FNS_DEMO
/* This stuff is currently broken */

View File

@@ -77,6 +77,9 @@
#define XOS_USE_XT_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#undef SVR4
#endif
#include <X11/Xos_r.h>
static int week_xytoclock(Week *w, int x, int y);

View File

@@ -66,6 +66,9 @@
#define XOS_USE_XT_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#undef SVR4
#endif
#include <X11/Xos_r.h>
/*

View File

@@ -88,6 +88,9 @@ static char sccsid[] = "@(#)yearglance.c 1.37 95/07/27 Copyr 1991 Sun Microsyste
#define XOS_USE_XT_LOCKING
#define X_INCLUDE_TIME_H
#if defined(linux)
#undef SVR4
#endif
#include <X11/Xos_r.h>
/* if positioning of months in year view changes this must change too!