Moved get_libdir function to its own file.

This commit is contained in:
Markus Makela
2015-04-27 11:06:11 +03:00
parent 2fce114483
commit 0cfcad55da
4 changed files with 24 additions and 15 deletions

10
server/core/gwdirs.c Normal file
View File

@ -0,0 +1,10 @@
#include <gwdirs.h>
/**
* Get the directory with all the modules.
* @return The module directory
*/
char* get_libdir()
{
return libdir?libdir:(char*)default_libdir;
}