FreeRDP/FreeRDP — pull request #857 by dpoe (2012-12-14 22:48:16+00:00)
Title: Fix for 8-byte compare-and-swap on older GCC

This changes a macro so that the mutex-based version of InterlockedCompareExchange64 is used on older versions of GCC that do not support the 8-byte sync_val_compare_and_swap builtin. Gcc provides built-in macros to make the decision easy at compile time.

I've tested this fix...it works. (An earlier version fell back to placeholder code which didn't do the operation correctly.