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:
Aleksander Czajczynski
2025-01-30 19:59:10 +01:00
parent 7ee496b5f8
commit a9e60478a3
2 changed files with 8 additions and 3 deletions

View File

@@ -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