visc
visc

Reputation: 4959

What is the universal runtime component #ifdef for windows (UWP) not iOS?

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

Answers (1)

Pedro Lamas
Pedro Lamas

Reputation: 7243

By default, Universal Windows projects get the WINDOWS_UWP compiler directive defined.

Upvotes: 3

Related Questions