Linux compilation of dtcm (Calendar), (Matthew Howkins)
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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>
|
||||
|
||||
/*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
/*
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
/*
|
||||
|
||||
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user