mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
16 lines
891 B
Diff
16 lines
891 B
Diff
diff --git a/src/backends/julia/juliaserver/juliaserver.cpp b/src/backends/julia/juliaserver/juliaserver.cpp
|
|
index 0eda2322..c84495c8 100644
|
|
--- a/src/backends/julia/juliaserver/juliaserver.cpp
|
|
+++ b/src/backends/julia/juliaserver/juliaserver.cpp
|
|
@@ -188,7 +188,11 @@ void JuliaServer::parseJlModule(jl_module_t* module, bool parseValue)
|
|
|
|
jl_function_t* jl_names_function = jl_get_function(jl_base_module, "names");
|
|
jl_value_t* names = jl_call1(jl_names_function, (jl_value_t*)module);
|
|
+#if QT_VERSION_CHECK(JULIA_VERSION_MAJOR, JULIA_VERSION_MINOR, 0) >= QT_VERSION_CHECK(1, 11, 0)
|
|
+ jl_value_t **data = (jl_value_t**)jl_array_data(names, void);
|
|
+#else
|
|
jl_value_t **data = (jl_value_t**)jl_array_data(names);
|
|
+#endif
|
|
for (size_t i = 0; i < jl_array_len(names); i++)
|
|
{
|
|
bool isBindingResolved = (bool)jl_binding_resolved_p(module, (jl_sym_t*)(data[i]));
|