I'm developing a cross platform c++ library. I target WP8 among others and I need to detect if the target is WP8 or Desktop Windows.
Is there a flag automatically set for WP8 targets?
I thought about using _WIN32 but it seems defined on both platforms anyway.
Not sure if this is what you're looking for but if you're doing a Universal App/Portable library you can detect it by using
C++
From winapifamily.h
C#