Skip to content

Commit 14cd62c

Browse files
Vali0004binarymaster
authored andcommitted
[NTVDM] Drop the brackets around PgmName so LLVM takes its offset
Fixes Clang 21 build problem on Linux.
1 parent f6738cb commit 14cd62c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎subsystems/mvdm/dos/command.S‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737

3838
/**** DATA stored inside the stack ****/
3939
#define CmdLine BaseStack // Command line for the program to be started
40-
#define PgmName [CmdLine + (1 + DOS_CMDLINE_LENGTH)]
40+
/* No outer brackets or parentheses, the LLVM assembler only takes offset before a bare expression */
41+
#define PgmName CmdLine + (1 + DOS_CMDLINE_LENGTH)
4142

4243

4344
// WARNING! Using the VAL(x) macro doesn't work with GCC/GAS (because it inserts

0 commit comments

Comments
 (0)