What you're trying to do isn't possible. #define is a preprocessor command, executed at compile time. Any instances of USE_KCHMVIEWER get replaced in the code, before it is compiled, with the value of USE_KCHMVIEWER. So there isn't a way to change such constants at run-time, and "undefining" them doesn't make any sense.

What you need to do is modify the code to remove USE_KCHMVIEWER from the relevant decision(s). Probably, it should be removed entirely and replaced with a variable. I'm not familiar with VirtualBox, so I don't know how difficult this is. But the type you would want to use is bool.

Reply via email to