Fix GCC build
This commit is contained in:
parent
9928f3ee1f
commit
4ab601e382
@ -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;
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user