Fix GCC build

This commit is contained in:
Stas Degteff 2005-11-01 20:11:49 +00:00
parent 9928f3ee1f
commit 4ab601e382
2 changed files with 8 additions and 1 deletions

View File

@ -119,7 +119,14 @@ int Area::LoadMsg(GMsg* msg, uint32_t msgno, int margin, int mode) {
Latin2Local(msg->re); Latin2Local(msg->re);
for (Line *ln = msg->lin; ln; ln = ln->next) for (Line *ln = msg->lin; ln; ln = ln->next)
#ifdef _MSC_VER
Latin2Local(ln->txt.begin()); Latin2Local(ln->txt.begin());
#else
{ char*str=strdup(ln->txt.data());
Latin2Local(str);
ln->txt.assign(str);
}
#endif
} }
return true; return true;

View File

@ -5,7 +5,7 @@ PATCH=15
TOP=../.. TOP=../..
TARGET=uulib TARGET=uulib
INCS=-I$(TOP)/goldlib/uulib INCS=-I$(TOP)/goldlib/uulib -I$(TOP)/goldlib/gall
CFLAGS=-DHAVE_CONFIG_H -DVERSION=\"$(VERSION)\" -DPATCH=\"$(PATCH)\" CFLAGS=-DHAVE_CONFIG_H -DVERSION=\"$(VERSION)\" -DPATCH=\"$(PATCH)\"
include $(TOP)/GNUmakef.inc include $(TOP)/GNUmakef.inc