codex:
Yes. For Harbour .prg / .ch preprocessor guards, use:
#if defined( __PLATFORM__WINDOWS )
// Windows-specific Harbour code
#endif
HB_OS_WIN is a C-side macro from Harbour headers. I would not define HB_OS_WIN manually in hbmk.hbm, because it makes PRG code look like it is using the C
API’s platform layer.
Minor note: in the installed Harbour headers here the C macro is HB_OS_WIN, not HB_WIN_OS.
For .hbm build filters, {allwin} is still fine when you need Windows-only build options, but for Harbour source guards __PLATFORM__WINDOWS is the native
symbol to use.