Skip to content
Snippets Groups Projects
Commit 76c6d2d9 authored by Danny Auble's avatar Danny Auble
Browse files

better code to make things work correctly

parent f4ea3d5e
No related branches found
No related tags found
No related merge requests found
......@@ -60,13 +60,13 @@ slurmdb_cluster_rec_t *working_cluster_rec = NULL;
extern "C" {
/* for some reason the extern "C" wrap above doesn't work for these
* const vars, so we have to explicitly set it for each one.
/* In C++ const objects have internal linkage by default so we have to
* do an extra extern here to make them export correctly.
*/
extern "C" const char plugin_name[] = "BG/Q node selection plugin";
extern "C" const char plugin_type[] = "select/bgq";
extern "C" const uint32_t plugin_id = 103;
extern "C" const uint32_t plugin_version = 100;
extern const char plugin_name[] = "BG/Q node selection plugin";
extern const char plugin_type[] = "select/bgq";
extern const uint32_t plugin_id = 103;
extern const uint32_t plugin_version = 100;
/*
* init() is called when the plugin is loaded, before any other functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment