From: cuz Date: Thu, 12 Dec 2002 21:53:26 +0000 (+0000) Subject: Some Watcom related fixes X-Git-Tag: V2.12.0~1916 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7f9bb307313416996fe256a841291241e2d55d05;p=cc65 Some Watcom related fixes git-svn-id: svn://svn.cc65.org/cc65/trunk@1742 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/objcode.h b/src/ca65/objcode.h index 96fa50100..8387ba576 100644 --- a/src/ca65/objcode.h +++ b/src/ca65/objcode.h @@ -56,12 +56,12 @@ extern int RelocMode; /* Definitions for predefined segments */ -SegDef NullSegDef; -SegDef ZeropageSegDef; -SegDef DataSegDef; -SegDef BssSegDef; -SegDef RODataSegDef; -SegDef CodeSegDef; +extern SegDef NullSegDef; +extern SegDef ZeropageSegDef; +extern SegDef DataSegDef; +extern SegDef BssSegDef; +extern SegDef RODataSegDef; +extern SegDef CodeSegDef; diff --git a/src/ca65/pseudo.c b/src/ca65/pseudo.c index 2a25be6fa..1c7314308 100644 --- a/src/ca65/pseudo.c +++ b/src/ca65/pseudo.c @@ -1247,7 +1247,9 @@ static void DoSegment (void) "FAR", "LONG" }; char Name [sizeof (SVal)]; - SegDef Def = { Name, SEGTYPE_DEFAULT }; + SegDef Def; + Def.Name = Name; + Def.Type = SEGTYPE_DEFAULT; if (Tok != TOK_STRCON) { ErrorSkip (ERR_STRCON_EXPECTED);