2025-01-30 19:59 UTC+0100 Aleksander Czajczynski (hb fki.pl)
* utils/hbmk2/hbmk2.prg
! issue #379 follow-up to OpenWatcom target platform
autodetection, hbmk2 needed similar patching
This commit is contained in:
@@ -2150,11 +2150,11 @@ STATIC FUNCTION __hbmk( aArgs, nArgTarget, nLevel, /* @ */ lPause, /* @ */ lExit
|
||||
DO CASE
|
||||
CASE FindInPath( "os2.h", GetEnv( "INCLUDE" ) ) != NIL
|
||||
hbmk[ _HBMK_cPLAT ] := "os2"
|
||||
CASE FindInPath( "dirent.h", GetEnv( "INCLUDE" ) ) != NIL
|
||||
hbmk[ _HBMK_cPLAT ] := "linux"
|
||||
CASE FindInPath( "windows.h", GetEnv( "INCLUDE" ) ) != NIL
|
||||
hbmk[ _HBMK_cPLAT ] := "win"
|
||||
OTHERWISE
|
||||
CASE At( Lower( PathSepToForward( GetEnv( "WATCOM" ) ) ) + "/lh", Lower( PathSepToForward( GetEnv( "INCLUDE" ) ) ) ) > 0
|
||||
hbmk[ _HBMK_cPLAT ] := "linux"
|
||||
CASE hbmk[ _HBMK_cPLAT ] == Lower( hb_Version( HB_VERSION_PLATFORM ) )
|
||||
hbmk[ _HBMK_cPLAT ] := "dos"
|
||||
ENDCASE
|
||||
ENDIF
|
||||
|
||||
Reference in New Issue
Block a user