From b1298f95e03d153ca2c8b36558701b1552353d5c Mon Sep 17 00:00:00 2001 From: jtvolpe Date: Sun, 20 May 2001 05:00:18 +0000 Subject: [PATCH] Fixed references to BuildCmdLine and my_system git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@837 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- Makefile.common.in | 2 +- src/Makefile.in | 2 +- support/Util/MySystem.c | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile.common.in b/Makefile.common.in index f5705af3..97b6a56a 100644 --- a/Makefile.common.in +++ b/Makefile.common.in @@ -38,7 +38,7 @@ SLIB = $(PRJDIR)/support/Util # Flags DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@) -CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR) -I$(SLIB) +CPPFLAGS = @CPPFLAGS@ -I. -I$(PRJDIR) -I$(SLIB) CFLAGS = @CFLAGS@ -Wall M_OR_MM = @M_OR_MM@ diff --git a/src/Makefile.in b/src/Makefile.in index a16e0455..7302396c 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -20,7 +20,7 @@ ifdef SDCC_SUB_VERSION CFLAGS += -DSDCC_SUB_VERSION_STR=\"$(SDCC_SUB_VERSION)\" endif -SLIBOBJS = SDCCerr.o NewAlloc.o +SLIBOBJS = SDCCerr.o NewAlloc.o MySystem.o BuildCmd.o OBJECTS = SDCCy.o SDCChasht.o SDCCmain.o \ SDCCsymt.o SDCCopt.o SDCCast.o SDCCmem.o SDCCval.o \ diff --git a/support/Util/MySystem.c b/support/Util/MySystem.c index bae66caa..411b11ff 100644 --- a/support/Util/MySystem.c +++ b/support/Util/MySystem.c @@ -24,7 +24,11 @@ #include "common.h" #include "newalloc.h" +#if defined(_MSC_VER) #include +#else +#include +#endif #define X_OK 1 -- 2.30.2