Skip to content

Commit

Permalink
adapt to BCC55
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Aug 14, 2019
1 parent 20f4e46 commit 551edcd
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
23 changes: 23 additions & 0 deletions Makefile.bcc32
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Makefile for Borland C++ Compiler 5.5.1
# Usage: make -f Makefile.bcc32

CPPFLAGS=

DOTOBJ=.obj
DOTEXE=.exe

OBJS=redir$(DOTOBJ) mzc2mini$(DOTOBJ)

all: redir$(DOTEXE)

redir$(DOTEXE): $(OBJS)
bcc32 -WC $(CPPFLAGS) -eredir $(OBJS)

redir$(DOTOBJ): mzc2mini.h redir.cpp
bcc32 -WC $(CPPFLAGS) -c redir.cpp

mzc2mini$(DOTOBJ): mzc2mini.h mzc2mini.cpp
bcc32 -WC $(CPPFLAGS) -c mzc2mini.cpp

clean:
if exist *.obj del *.obj
2 changes: 1 addition & 1 deletion mzc2mini.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ tstring MFindFile::GetFilePath() const
lstrcpy(szPath, m_szRoot);
MzcAddBackslash(szPath);
lstrcat(szPath, GetFileName());
return szPath;
return tstring(szPath);
}

LPCTSTR MFindFile::GetRoot() const
Expand Down
5 changes: 5 additions & 0 deletions redir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#include <cstdlib>
#include <cstdio>
#include <cstring>
using std::size_t;
using std::puts;
using std::fprintf;

#include <windows.h>

Expand Down Expand Up @@ -51,6 +54,8 @@ void show_version(void)

int main(int argc, char **argv)
{
using namespace std;

if (argc >= 2)
{
if (lstrcmpiA(argv[1], "/?") == 0 || lstrcmpiA(argv[1], "--help") == 0)
Expand Down

0 comments on commit 551edcd

Please sign in to comment.