Issue #27336: Fix compilation on Windows

Replace "#if WITH_THREAD" with "#ifdef WITH_THREAD".
1 file changed