mirror of https://github.com/tp4a/teleport
port to macOS.
parent
3e2f06a740
commit
e1c74689d5
|
@ -48,7 +48,7 @@ __pycache__
|
||||||
/external/libuv
|
/external/libuv
|
||||||
/client/tools/putty
|
/client/tools/putty
|
||||||
/client/tools/winscp
|
/client/tools/winscp
|
||||||
|
/client/tp_assist_macos/DerivedData
|
||||||
|
|
||||||
# for dist folder
|
# for dist folder
|
||||||
**/_tmp_
|
**/_tmp_
|
||||||
|
@ -72,3 +72,4 @@ __pycache__
|
||||||
/client/tp_rdp
|
/client/tp_rdp
|
||||||
/server/tp_core/protocol/rdp
|
/server/tp_core/protocol/rdp
|
||||||
/client/tools/tprdp
|
/client/tools/tprdp
|
||||||
|
/client/tp_assist_macos
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#ifndef __LIB_EX_PATH_H__
|
#ifndef __LIB_EX_PATH_H__
|
||||||
#define __LIB_EX_PATH_H__
|
#define __LIB_EX_PATH_H__
|
||||||
|
|
||||||
#include <ex/ex_platform.h>
|
#include "ex_platform.h"
|
||||||
#include <ex/ex_types.h>
|
#include "ex_types.h"
|
||||||
#include <ex/ex_str.h>
|
#include "ex_str.h"
|
||||||
|
|
||||||
// fix `in_path` for current platform.
|
// fix `in_path` for current platform.
|
||||||
// must use ex_free() to release returned value.
|
// must use ex_free() to release returned value.
|
||||||
|
|
|
@ -66,6 +66,9 @@
|
||||||
#endif
|
#endif
|
||||||
#ifdef EX_OS_MACOS
|
#ifdef EX_OS_MACOS
|
||||||
# include <mach-o/dyld.h> // for _NSGetExecutablePath
|
# include <mach-o/dyld.h> // for _NSGetExecutablePath
|
||||||
|
# ifndef _T
|
||||||
|
# define _T(x) L##x
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __EX_THREAD_H__
|
#ifndef __EX_THREAD_H__
|
||||||
#define __EX_THREAD_H__
|
#define __EX_THREAD_H__
|
||||||
|
|
||||||
#include <ex/ex_str.h>
|
#include "ex_str.h"
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef __LIB_EX_UTIL_H__
|
#ifndef __LIB_EX_UTIL_H__
|
||||||
#define __LIB_EX_UTIL_H__
|
#define __LIB_EX_UTIL_H__
|
||||||
|
|
||||||
#include <ex/ex_types.h>
|
#include "ex_types.h"
|
||||||
#include <ex/ex_str.h>
|
#include "ex_str.h"
|
||||||
|
|
||||||
#ifdef EX_OS_WIN32
|
#ifdef EX_OS_WIN32
|
||||||
# include <time.h>
|
# include <time.h>
|
||||||
|
|
|
@ -185,7 +185,8 @@ bool ex_exec_file(ex_wstr& out_filename)
|
||||||
if (!ex_astr2wstr(buffer, out_filename))
|
if (!ex_astr2wstr(buffer, out_filename))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return ex_abspath(out_filename);
|
//return ex_abspath(out_filename);
|
||||||
|
return true;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
char buffer[EX_PATH_MAX];
|
char buffer[EX_PATH_MAX];
|
||||||
|
|
Loading…
Reference in New Issue