From fd2322880359ca9f48f66eda54ccaedffd77266e Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 12 Mar 2012 12:04:55 +0000 Subject: [PATCH] -fpermissive to allow old C++ to compile on gcc --- cde/programs/dtmail/dtmailpr/Imakefile | 4 ++++ cde/programs/dtmail/libDtMail/Common/Imakefile | 4 ++++ cde/programs/dtmail/libDtMail/RFC/Imakefile | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/cde/programs/dtmail/dtmailpr/Imakefile b/cde/programs/dtmail/dtmailpr/Imakefile index 7fcd8e0d..064ed1b7 100644 --- a/cde/programs/dtmail/dtmailpr/Imakefile +++ b/cde/programs/dtmail/dtmailpr/Imakefile @@ -39,6 +39,10 @@ MT_LIBS = -i $(C++_LIB) -lm -lw -lc SYS_LIBRARIES = -lintl -lnsl $(MT_LIBS) -lC #endif /* SunArchitecture */ + +#if defined(LinuxDistribution) +CXXEXTRA_DEFINES = -fpermissive +#endif SRCS = main.C message.C mailbox.C utils.C OBJS = main.o message.o mailbox.o utils.o diff --git a/cde/programs/dtmail/libDtMail/Common/Imakefile b/cde/programs/dtmail/libDtMail/Common/Imakefile index f5b30832..7a1530e1 100644 --- a/cde/programs/dtmail/libDtMail/Common/Imakefile +++ b/cde/programs/dtmail/libDtMail/Common/Imakefile @@ -14,6 +14,10 @@ DEPEND_DEFINES = $(CXXDEPENDINCLUDES) INCLUDES = -I. -I../../include -I../../include/utils -I$(CDELIBSRC) +#if defined(LinuxDistribution) +CXXEXTRA_DEFINES = -fpermissive +#endif + #if HasVFork VFORK_DEFINES = -DHAS_VFORK #else diff --git a/cde/programs/dtmail/libDtMail/RFC/Imakefile b/cde/programs/dtmail/libDtMail/RFC/Imakefile index 2b0ca195..0fec6839 100644 --- a/cde/programs/dtmail/libDtMail/RFC/Imakefile +++ b/cde/programs/dtmail/libDtMail/RFC/Imakefile @@ -14,6 +14,10 @@ DEPEND_DEFINES = $(CXXDEPENDINCLUDES) INCLUDES = -I. -I../Common -I../../include -I../../include/utils -I$(CDELIBSRC) +#if defined(LinuxDistribution) +CXXEXTRA_DEFINES = -fpermissive +#endif + #if HasVFork VFORK_DEFINES = -DHAS_VFORK #else -- 2.25.1