From 58e40ad910ec2d07b4e5e20b760b72e3cec4734d Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sat, 23 Oct 2021 19:08:04 +0200 Subject: [PATCH] Export `version` symbol to Python API again This symbol somehow got lost starting with libMagPlus 4.7.0. When calling it from Python, it croaked like:: AttributeError: dlsym(0x7f7f59e05120, version): symbol not found --- src/api/MagicsCallsPython.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/MagicsCallsPython.cc b/src/api/MagicsCallsPython.cc index e530c110..e3fd90b6 100644 --- a/src/api/MagicsCallsPython.cc +++ b/src/api/MagicsCallsPython.cc @@ -102,6 +102,10 @@ MAGICS_EXPORT const char* home() { return MagicsCalls::home(); } +MAGICS_EXPORT const char* version() { + return MagicsCalls::version(); +} + #define PYTHON_VOID(NAME) \ MAGICS_EXPORT const char* py_##NAME() { return python_void(#NAME, MagicsCalls::NAME); }