Skip to content

Commit

Permalink
update module
Browse files Browse the repository at this point in the history
  • Loading branch information
jovanlanik committed Aug 3, 2022
1 parent 56b2837 commit 4f28d98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#endif
#define _STR(x) #x
#define STR(x) _STR(x)
#define LIB_PATH STR(PREFIX/lib)

GModule *module_load(const char *name) {
if(g_module_supported() == FALSE) return NULL;
Expand All @@ -22,7 +21,7 @@ GModule *module_load(const char *name) {
if(g_file_test(name, G_FILE_TEST_IS_REGULAR)) path = g_strdup(name);
else {
g_free(path);
path = g_build_path("/", LIB_PATH, name, NULL);
path = g_build_path("/", STR(PREFIX)"/lib/gtklock", name, NULL);
}
}

Expand Down

0 comments on commit 4f28d98

Please sign in to comment.