Fixing build on linux.

This commit is contained in:
Ben Vanik 2014-07-31 21:56:51 -07:00
parent b24835be27
commit 4beaacb622
2 changed files with 3 additions and 3 deletions

View File

@ -88,8 +88,8 @@ inline int64_t atomic_exchange(int64_t new_value, volatile int64_t* value) {
inline int32_t atomic_cas(int32_t old_value, int32_t new_value,
volatile int32_t* value) {
return __sync_bool_compare_and_swap(reinterpret_cast<volatile LONG*>(value),
old_value, new_value);
return __sync_bool_compare_and_swap(
reinterpret_cast<volatile int32_t*>(value), old_value, new_value);
}
#else

View File

@ -60,7 +60,7 @@
],
'cflags': [
#'-std=c99',
'-std=c++11',
],
'configurations': {