From 02877adb5424aa287b6c9b145f463da9d57c7328 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Fri, 23 Aug 2002 06:17:43 +0000 Subject: [PATCH] Probably fixed SMB compilation under OS/2 --- GNUmakef.def | 2 +- goldlib/gmb3/gmoarea.h | 2 +- goldlib/smblib/Makefile | 1 - goldlib/smblib/lzh.h | 6 ++++++ goldlib/smblib/smblib.cpp | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/GNUmakef.def b/GNUmakef.def index 4b2352a..1315ca9 100644 --- a/GNUmakef.def +++ b/GNUmakef.def @@ -57,7 +57,7 @@ LIBEXT=.a endif endif endif -CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2# -fomit-frame-pointer +CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2 -DGOLDEDPLUS # -fomit-frame-pointer LNKFLAGS+=-g CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti diff --git a/goldlib/gmb3/gmoarea.h b/goldlib/gmb3/gmoarea.h index 61a775f..e1798eb 100644 --- a/goldlib/gmb3/gmoarea.h +++ b/goldlib/gmb3/gmoarea.h @@ -87,7 +87,7 @@ public: int originno() const { return cfg.originno; } Attr& attr() { return cfg.attr; } bool ispacked() const { return cfg.attr.pkd(); } - void packed(bool a) { return cfg.attr.pkd(a); } + void packed(bool a) { cfg.attr.pkd(a); } bool ascan() { return (bool)cfg.scan; } bool ascanexcl() { return (bool)cfg.scanexcl; } diff --git a/goldlib/smblib/Makefile b/goldlib/smblib/Makefile index 8731166..0146dc1 100644 --- a/goldlib/smblib/Makefile +++ b/goldlib/smblib/Makefile @@ -3,7 +3,6 @@ TOP=../.. TARGET=smblib INCS=-I$(TOP)/goldlib/smblib -I$(TOP)/goldlib/gall -CFLAGS=-DGOLDEDPLUS include $(TOP)/GNUmakef.inc include $(TOP)/GNUmakef.lib diff --git a/goldlib/smblib/lzh.h b/goldlib/smblib/lzh.h index cb919b1..b2ccc18 100644 --- a/goldlib/smblib/lzh.h +++ b/goldlib/smblib/lzh.h @@ -58,6 +58,12 @@ #define LZHEXPORT #endif +#ifdef __GNUC__ + #ifndef __FLAT__ + #define __FLAT__ + #endif +#endif + #ifndef GOLDEDPLUS #ifndef uchar #define uchar unsigned char diff --git a/goldlib/smblib/smblib.cpp b/goldlib/smblib/smblib.cpp index 44981d1..547a420 100644 --- a/goldlib/smblib/smblib.cpp +++ b/goldlib/smblib/smblib.cpp @@ -55,8 +55,8 @@ #include #include #include -#include #include +#include /* SMB-specific headers */ #include "smblib.h"