summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f6d220a)
It was causing compile errors when cross-compiling using mingw.
No functional change.
return 0;
}
// Memory barrier to ensure ptr->ready = 1 is not reordered.
return 0;
}
// Memory barrier to ensure ptr->ready = 1 is not reordered.
-#ifdef _WIN32
- _ReadWriteBarrier();
+#ifdef _MSC_VER
+ _ReadWriteBarrier();
#else
__asm__ __volatile__ ("" ::: "memory");
#endif
#else
__asm__ __volatile__ ("" ::: "memory");
#endif