Allow using librseq APIs from C++ code
authorMatthew Glazar <strager.nds@gmail.com>
Thu, 19 Sep 2019 06:18:02 +0000 (23:18 -0700)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 19 Sep 2019 14:02:44 +0000 (10:02 -0400)
commit60a27517b61241270ec5bdd312b1eac9bee6fdc2
treebc8bacd943a9446676cd10e906511d2b7f0d6bc5
parent08ce323ad2225439fa435c6e810b20d192897f1f
Allow using librseq APIs from C++ code

If you call librseq APIs like rseq_available and
rseq_register_current_thread from C++ code, linking fails:

    rseq.cpp:365: undefined reference to `rseq_available()'
    rseq.cpp:46: undefined reference to `rseq_register_current_thread()'

Tell the C++ compiler to treat librseq's exported APIs as having C
mangling, fixing these linker errors.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/rseq/rseq.h
This page took 0.023289 seconds and 4 git commands to generate.