Also add a comment explaining what are we doing here. And fix the #endif comment to match the updated #if condition. No real changes.