# Build error 'WINAPI\_PARTITION\_GAMES' is not defined as a preprocessor macro

**URL:** <https://forums.unrealengine.com/t/build-error-winapi-partition-games-is-not-defined-as-a-preprocessor-macro/483348>\
**Category:** Platform & Builds\
**Tags:** build, unreal-engine, question, build-editor\
**Created:** [May 13, 2021, 8:40pm UTC](https://forums.unrealengine.com/t/build-error-winapi-partition-games-is-not-defined-as-a-preprocessor-macro/483348 "2021-05-13T20:40:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![WossnameX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WossnameX](https://forums.unrealengine.com/u/WossnameX)\
**Post date:** [May 13, 2021, 8:40pm UTC](https://forums.unrealengine.com/t/build-error-winapi-partition-games-is-not-defined-as-a-preprocessor-macro/483348/1 "2021-05-13T20:40:12Z")

</div>

When trying to build from Github master - no local changes - I keep getting the error: ‘WINAPI\_PARTITION\_GAMES’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’

Googling reveals this was a bug marked as fixed a year ago [Unreal Engine 4.25 Preview - #228 by VictorLerp](https://forums.unrealengine.com/t/unreal-engine-4-25-preview/139241/228)

Is this a problem in the source, or is it potentially something in my local environment that’s causing it?

---

<div class="post-metadata">

**Author:** ![landon.duval](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@landon.duval](https://forums.unrealengine.com/u/landon.duval)\
**Post date:** [June 18, 2021, 7:05am UTC](https://forums.unrealengine.com/t/build-error-winapi-partition-games-is-not-defined-as-a-preprocessor-macro/483348/2 "2021-06-18T07:05:44Z")

</div>

Resurrecting this post, as I’m also having this issue. Using the latest version of the master branch now is still giving me this issue. Been banging my head against a wall for a couple days at this point because of it…

Any luck with this?

---

<div class="post-metadata">

**Author:** ![WolfWorms](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wolfworms/32/734785_2.png) [@WolfWorms](https://forums.unrealengine.com/u/WolfWorms)\
**Post date:** [August 28, 2021, 8:34pm UTC](https://forums.unrealengine.com/t/build-error-winapi-partition-games-is-not-defined-as-a-preprocessor-macro/483348/3 "2021-08-28T20:34:48Z")

</div>

Bump, I’m also having the same issue.

---

<div class="post-metadata">

**Author:** ![lark.li](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lark.li](https://forums.unrealengine.com/u/lark.li)\
**Post date:** [September 7, 2021, 8:52am UTC](https://forums.unrealengine.com/t/build-error-winapi-partition-games-is-not-defined-as-a-preprocessor-macro/483348/4 "2021-09-07T08:52:41Z")

</div>

I have the issue too.

---

<div class="post-metadata">

**Author:** ![lark.li](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lark.li](https://forums.unrealengine.com/u/lark.li)\
**Post date:** [September 8, 2021, 3:03am UTC](https://forums.unrealengine.com/t/build-error-winapi-partition-games-is-not-defined-as-a-preprocessor-macro/483348/5 "2021-09-08T03:03:44Z")

</div>

[https://answers.unrealengine.com/questions/1034296/building-ue-427-fails-due-to-missing-physx-headers.html](https://answers.unrealengine.com/questions/1034296/building-ue-427-fails-due-to-missing-physx-headers.html)

windows sdk need 10.0.18
