From 7f9bb307313416996fe256a841291241e2d55d05 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 12 Dec 2002 21:53:26 +0000 Subject: [PATCH] Some Watcom related fixes git-svn-id: svn://svn.cc65.org/cc65/trunk@1742 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/objcode.h | 12 ++++++------ src/ca65/pseudo.c | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) 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); -- 2.39.5