Improve swap code to include more platforms.
Improve swap code to include more platforms.

libretro/ppsspp-native,unknownbrackets/native,zhykzhykzhyk/ppsspp-native,unknownbrackets/native,hrydgard/native,zhykzhykzhyk/ppsspp-native,unknownbrackets/native,zhykzhykzhyk/ppsspp-native,libretro/ppsspp-native,hrydgard/native,zhykzhykzhyk/ppsspp-native,libretro/ppsspp-native,hrydgard/native,unknownbrackets/native,libretro/ppsspp-native,hrydgard/native