# Using #ifdef doesn't work with Unreal Header Tool

**URL:** <https://forums.unrealengine.com/t/using-ifdef-doesnt-work-with-unreal-header-tool/366377>\
**Category:** C++\
**Tags:** uht, unreal-engine, question, CPP\
**Created:** [August 7, 2016, 12:46pm UTC](https://forums.unrealengine.com/t/using-ifdef-doesnt-work-with-unreal-header-tool/366377 "2016-08-07T12:46:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![anonymous\_user\_86746194](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86746194](https://forums.unrealengine.com/u/anonymous_user_86746194)\
**Post date:** [August 8, 2016, 3:03am UTC](https://forums.unrealengine.com/t/using-ifdef-doesnt-work-with-unreal-header-tool/366377/4 "2016-08-08T03:03:55Z")

</div>

You don’t need the defined keyword. If it is not defined it is falsy.

You are doing the equivalent of this in the macro world:

```
if (I < 5 || 10 || 17)

```

This is an illegal statement. The code you want is:

```
#if __cplusplus || UE_GAME || UE_EDITOR || UE_SERVER

```

---

_[View the full topic](https://forums.unrealengine.com/t/using-ifdef-doesnt-work-with-unreal-header-tool/366377)._
