aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/install')
-rw-r--r--libbuild2/install/init.cxx10
-rw-r--r--libbuild2/install/init.hxx2
2 files changed, 9 insertions, 3 deletions
diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx
index fb3d9ea..060007b 100644
--- a/libbuild2/install/init.cxx
+++ b/libbuild2/install/init.cxx
@@ -300,10 +300,16 @@ namespace build2
return true;
}
- module_functions
+ static const module_functions mod_functions[] =
+ {
+ {"install", &boot, &init},
+ {nullptr, nullptr, nullptr}
+ };
+
+ const module_functions*
build2_install_load ()
{
- return module_functions {&boot, &init};
+ return mod_functions;
}
}
}
diff --git a/libbuild2/install/init.hxx b/libbuild2/install/init.hxx
index fa0a1e1..b2daea0 100644
--- a/libbuild2/install/init.hxx
+++ b/libbuild2/install/init.hxx
@@ -28,7 +28,7 @@ namespace build2
bool,
const variable_map&);
- extern "C" LIBBUILD2_SYMEXPORT module_functions
+ extern "C" LIBBUILD2_SYMEXPORT const module_functions*
build2_install_load ();
}
}