[vlc-commits] include: stick to a single version (2011) C/C++ atomics

Rémi Denis-Courmont git at videolan.org
Sun Jun 21 23:13:12 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jun 21 23:27:57 2015 +0300| [ab550d60dd8d823b8ddacd2d4759f0840a9ea352] | committer: Rémi Denis-Courmont

include: stick to a single version (2011) C/C++ atomics

This fixes mismatched binary interface when either:
 - the versions of C and C++ were different within the LibVLC build, or
 - an out-of-tree plugin used a different language versin than LibVLC.

The LibVLC implementation for ISO C atomics with Intel intrinsics was
not generally binary compatible with the native implementation of the
compiler. In other words, only one atomics implementation can be used
in one LibVLC installation. The One Definition Rule from C++ imposes
that native implementation is used, so the LibVLC implementation is
hereby removed.

Regression from edf1c76018777f4de40df66a5613457774f3e207.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ab550d60dd8d823b8ddacd2d4759f0840a9ea352
---

 include/vlc_atomic.h |  385 ++------------------------------------------------
 1 file changed, 9 insertions(+), 376 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=ab550d60dd8d823b8ddacd2d4759f0840a9ea352


More information about the vlc-commits mailing list