Unreal Engine 4.15 Preview

Yes, you are missing the Windows stuff that was included by Engine headers in all your own code (without you even knowing it).

So you can go this way…

But if you want to make portable code (to go Mobile, Console, or OS X/Linux) you should never do this !

=> Instead, use the “GenericPlaform” API of UnrealEngine, for instance the FPlatformAtomics::InterlockedExchange().

When I am faced with such low level question, I look into the Engine code itself (and particularly the Plugins, since they are somewhat external as a Game code)

Hope this helps!