Reputation: 4959
I'm trying to build a universal runtime component using cross-platform C++ code in a git submodule. I need to figure out what the #ifdef
is for when I want code to build for the universal runtime component (UWP) and not for xcode on iOS.
#ifdef __WINDOWS_ONLY_COMPILE_FLAG?
// some code i want to compile on windows
#endif
Upvotes: 2
Views: 766
Reputation: 7243
By default, Universal Windows projects get the WINDOWS_UWP
compiler directive defined.
Upvotes: 3