0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-09-21 19:46:23 -04:00

Introduced STRING_DIR_SEP for better portability

This commit is contained in:
Witold Filipczyk
2006-07-02 08:44:52 +02:00
committed by Witold Filipczyk
parent f9a452ece7
commit d1e5e0b7d2
6 changed files with 15 additions and 4 deletions

View File

@@ -9,6 +9,7 @@
#include "config/home.h"
#include "ecmascript/spidermonkey/util.h"
#include "main/module.h"
#include "osdep/osdep.h"
#include "scripting/scripting.h"
#include "scripting/smjs/core.h"
#include "scripting/smjs/elinks_object.h"
@@ -114,7 +115,7 @@ smjs_load_hooks(void)
if (elinks_home) {
path = straconcat(elinks_home, SMJS_HOOKS_FILENAME, NULL);
} else {
path = stracpy(CONFDIR "/" SMJS_HOOKS_FILENAME);
path = stracpy(CONFDIR STRING_DIR_SEP SMJS_HOOKS_FILENAME);
}
if (file_exists(path))