From: jtvolpe Date: Sun, 20 May 2001 05:00:18 +0000 (+0000) Subject: Fixed references to BuildCmdLine and my_system X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b1298f95e03d153ca2c8b36558701b1552353d5c;hp=a5d15d71b94f0be48a7897f7f79894d63ed0ee6e;p=fw%2Fsdcc 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 --- 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