提交 1af7f81a authored 作者: Michael Jerris's avatar Michael Jerris

GLOB_TILDE is not allways supported

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6289 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 960a2e26
...@@ -366,7 +366,9 @@ struct SimpleGlobBase ...@@ -366,7 +366,9 @@ struct SimpleGlobBase
int FindFirstFileS(const char * a_pszFileSpec, unsigned int a_uiFlags) { int FindFirstFileS(const char * a_pszFileSpec, unsigned int a_uiFlags) {
int nFlags = GLOB_MARK | GLOB_NOSORT; int nFlags = GLOB_MARK | GLOB_NOSORT;
if (a_uiFlags & SG_GLOB_ERR) nFlags |= GLOB_ERR; if (a_uiFlags & SG_GLOB_ERR) nFlags |= GLOB_ERR;
#ifdef GLOB_TILDE
if (a_uiFlags & SG_GLOB_TILDE) nFlags |= GLOB_TILDE; if (a_uiFlags & SG_GLOB_TILDE) nFlags |= GLOB_TILDE;
#endif
int rc = glob(a_pszFileSpec, nFlags, NULL, &m_glob); int rc = glob(a_pszFileSpec, nFlags, NULL, &m_glob);
if (rc == GLOB_NOSPACE) return SG_ERR_MEMORY; if (rc == GLOB_NOSPACE) return SG_ERR_MEMORY;
if (rc == GLOB_ABORTED) return SG_ERR_FAILURE; if (rc == GLOB_ABORTED) return SG_ERR_FAILURE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论