Update to allow gnu make to work with msvc

This commit is contained in:
Paul Tucker
1999-10-16 03:52:31 +00:00
parent c9c5d1e667
commit ba872d61e2
3 changed files with 18 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
19991015-23:25 EDT Paul Tucker <ptucker@sympatico.ca>
* source/compiler/harbour.c
+ || defined(_MSC_VER) around isatty()
This allows gnu make to compile harbour.exe
It doesn't seem to affect ms make
* doc/gmake.txt
* updated notes regarding MSVC
19991015-23:15 EDT David G. Holm <dholm@jsd-llc.com>
* include/set.h

View File

@@ -143,6 +143,15 @@ For gcc on Win95/WinNT with the Mingw32 library:
HB_COMPILER mingw32
For MSVC on Win95/WinNT:
Notes: You must create an empty unistd.h in the include directory.
gnu make is case sensitive! If your editor converts
harbour.c to HARBOUR.C when it saves the file, then gnu make
_will_not_work.
If you have MAKE_MODE in your dos environment, make sure it is
not set to unix
For best results, in your copy of make_tpl.bat, also set:
C_USR=-DHARBOUR_USE_WIN_GTAPI -TP
HB_ARCHITECTURE win32
HB_COMPILER msvc

View File

@@ -47,7 +47,7 @@ int main( int argc, char * argv[] )
return harbour_main( argc, argv );
}
#ifdef __IBMCPP__
#if defined(__IBMCPP__) || defined(_MSC_VER)
int isatty( int handle )
{
return ( handle < 4 ) ? 1 : 0;