mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
make global directory struct work on windows.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@703 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
62e510c9b1
commit
12094ad7a0
@ -41,28 +41,34 @@ extern "C" {
|
||||
#include <switch.h>
|
||||
#include <switch_platform.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define SEP "\\"
|
||||
#else
|
||||
#define SEP "/"
|
||||
#endif
|
||||
|
||||
#ifndef SWITCH_PREFIX_DIR
|
||||
#define SWITCH_PREFIX_DIR "."
|
||||
#endif
|
||||
|
||||
#ifndef SWITCH_MOD_DIR
|
||||
#define SWITCH_MODDIR "./mod"
|
||||
#define SWITCH_MOD_DIR SWITCH_PREFIX_DIR SEP "mod"
|
||||
#endif
|
||||
|
||||
#ifndef SWITCH_CONF_DIR
|
||||
#define SWITCH_CONF_DIR "./conf"
|
||||
#define SWITCH_CONF_DIR SWITCH_PREFIX_DIR SEP "conf"
|
||||
#endif
|
||||
|
||||
#ifndef SWITCH_LOG_DIR
|
||||
#define SWITCH_LOG_DIR "./log"
|
||||
#define SWITCH_LOG_DIR SWITCH_PREFIX_DIR SEP "log"
|
||||
#endif
|
||||
|
||||
#ifndef SWITCH_DB_DIR
|
||||
#define SWITCH_DB_DIR "./db"
|
||||
#define SWITCH_DB_DIR SWITCH_PREFIX_DIR SEP "db"
|
||||
#endif
|
||||
|
||||
#ifndef SWITCH_SCRIPT_DIR
|
||||
#define SWITCH_SCRIPT_DIR "./scripts"
|
||||
#define SWITCH_SCRIPT_DIR SWITCH_PREFIX_DIR SEP "scripts"
|
||||
#endif
|
||||
|
||||
struct switch_directories {
|
||||
|
@ -39,15 +39,6 @@ static char *embedding[] = { "", "-e", "" };
|
||||
EXTERN_C void xs_init(pTHX);
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef SWITCH_DB_DIR
|
||||
#ifdef WIN32
|
||||
#define SWITCH_DB_DIR ".\\db"
|
||||
#else
|
||||
#define SWITCH_DB_DIR "/usr/local/freeswitch/db"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
struct switch_core_session {
|
||||
unsigned long id;
|
||||
char name[80];
|
||||
|
Loading…
x
Reference in New Issue
Block a user