commit 2025-09-07 15:16 edit code for _NO_USE_REEDDIR_R_ : ZCppMain/ZMainHeadEx.H
This commit is contained in:
@ -4625,7 +4625,7 @@ namespace ZNsMain
|
||||
#else //!defined(_WIN)
|
||||
|
||||
ZCFileData VO_CFileData;
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
dirent VO_DirEnt;
|
||||
#endif
|
||||
dirent* VP_DirEnt;
|
||||
@ -4635,7 +4635,7 @@ namespace ZNsMain
|
||||
if(VH_File==NULL)
|
||||
return ZNsMain::ZNsEnum::ZERun_OK;
|
||||
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
while(::readdir_r(VH_File, &VO_DirEnt, &VP_DirEnt)==0 && VP_DirEnt!=0)
|
||||
#else
|
||||
while((VP_DirEnt = ::readdir(VH_File))!=0)
|
||||
@ -4709,7 +4709,7 @@ namespace ZNsMain
|
||||
}/*
|
||||
else // !VO_CFileData.IsDir()*/
|
||||
}/*
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
while(::readdir_r(VH_File, &VO_DirEnt, &VP_DirEnt)==0 && VP_DirEnt!=0)
|
||||
#else
|
||||
while((VP_DirEnt = ::readdir(VH_File))!=0)
|
||||
@ -4844,7 +4844,7 @@ namespace ZNsMain
|
||||
#else //!defined(_WIN)
|
||||
|
||||
ZCFileData VO_CFileData;
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
dirent VO_DirEnt;
|
||||
#endif
|
||||
dirent* VP_DirEnt;
|
||||
@ -4854,7 +4854,7 @@ namespace ZNsMain
|
||||
if(VH_File==NULL)
|
||||
return ZNsMain::ZNsEnum::ZERun_OK;
|
||||
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
while(::readdir_r(VH_File, &VO_DirEnt, &VP_DirEnt)==0 && VP_DirEnt!=0)
|
||||
#else
|
||||
while((VP_DirEnt = ::readdir(VH_File))!=0)
|
||||
@ -4916,7 +4916,7 @@ namespace ZNsMain
|
||||
}/*
|
||||
else*/
|
||||
}/*
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
while(::readdir_r(VH_File, &VO_DirEnt, &VP_DirEnt)==0 && VP_DirEnt!=0)
|
||||
#else
|
||||
while((VP_DirEnt = ::readdir(VH_File))!=0)
|
||||
@ -5026,7 +5026,7 @@ namespace ZNsMain
|
||||
#else //!defined(_WIN)
|
||||
|
||||
ZCFileData VO_CFileData;
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
dirent VO_DirEnt;
|
||||
#endif
|
||||
dirent* VP_DirEnt;
|
||||
@ -5035,7 +5035,7 @@ namespace ZNsMain
|
||||
|
||||
if(VH_File==NULL) return ZERun_OK;
|
||||
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
while(::readdir_r(VH_File, &VO_DirEnt, &VP_DirEnt)==0 && VP_DirEnt!=0)
|
||||
#else
|
||||
while((VP_DirEnt= ::readdir(VH_File))!=0)
|
||||
@ -5093,7 +5093,7 @@ namespace ZNsMain
|
||||
}/*
|
||||
else*/
|
||||
}/*
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
while(::readdir_r(VH_File, &VO_DirEnt, &VP_DirEnt)==0 && VP_DirEnt!=0)
|
||||
#else
|
||||
while((VP_DirEnt= ::readdir(VH_File))!=0)
|
||||
@ -5183,7 +5183,7 @@ namespace ZNsMain
|
||||
#else // !defined(_WIN)
|
||||
|
||||
ZCFileData VO_CFileData;
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
dirent VO_DirEnt;
|
||||
#endif
|
||||
dirent* VP_DirEnt;
|
||||
@ -5193,7 +5193,7 @@ namespace ZNsMain
|
||||
if(VH_File==NULL)
|
||||
return ZNsMain::ZNsEnum::ZERun_OK;
|
||||
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
while(::readdir_r(VH_File, &VO_DirEnt, &VP_DirEnt)==0 && VP_DirEnt!=0)
|
||||
#else
|
||||
while((VP_DirEnt= ::readdir(VH_File))!=0)
|
||||
@ -5247,7 +5247,7 @@ namespace ZNsMain
|
||||
}/*
|
||||
else*/
|
||||
}/*
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
while(::readdir_r(VH_File, &VO_DirEnt, &VP_DirEnt)==0 && VP_DirEnt!=0)
|
||||
#else
|
||||
while((VP_DirEnt= ::readdir(VH_File))!=0)
|
||||
@ -5348,7 +5348,7 @@ namespace ZNsMain
|
||||
#else // !defined(_WIN)
|
||||
|
||||
ZCFileData VO_CFileData;
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
dirent VO_DirEnt;
|
||||
#endif
|
||||
dirent* VP_DirEnt;
|
||||
@ -5358,7 +5358,7 @@ namespace ZNsMain
|
||||
if(VH_File==NULL)
|
||||
return ZNsMain::ZNsEnum::ZERun_OK;
|
||||
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
while(::readdir_r(VH_File, &VO_DirEnt, &VP_DirEnt)==0 && VP_DirEnt!=0)
|
||||
#else
|
||||
while((VP_DirEnt= ::readdir(VH_File))!=0)
|
||||
@ -5410,7 +5410,7 @@ namespace ZNsMain
|
||||
}/*
|
||||
else*/
|
||||
}/*
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
while(::readdir_r(VH_File, &VO_DirEnt, &VP_DirEnt)==0 && VP_DirEnt!=0)
|
||||
#else
|
||||
while((VP_DirEnt= ::readdir(VH_File))!=0)
|
||||
@ -5501,7 +5501,7 @@ namespace ZNsMain
|
||||
#else // !defined(_WIN)
|
||||
|
||||
ZCFileData VO_CFileData;
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
dirent VO_DirEnt;
|
||||
#endif
|
||||
dirent* VP_DirEnt;
|
||||
@ -5510,7 +5510,7 @@ namespace ZNsMain
|
||||
|
||||
if(VH_File==NULL) return ZNsMain::ZNsEnum::ZERun_OK;
|
||||
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
while(::readdir_r(VH_File, &VO_DirEnt, &VP_DirEnt)==0 && VP_DirEnt!=0)
|
||||
#else
|
||||
while((VP_DirEnt = ::readdir(VH_File))!=0)
|
||||
@ -5568,7 +5568,7 @@ namespace ZNsMain
|
||||
}/*
|
||||
else*/
|
||||
}/*
|
||||
#ifdef _REENTRANT && !defined(_NO_USE_REEDDIR_R_)
|
||||
#if defined(_REENTRANT) && !defined(_NO_USE_REEDDIR_R_)
|
||||
while(::readdir_r(VH_File, &VO_DirEnt, &VP_DirEnt)==0 && VP_DirEnt!=0)
|
||||
#else
|
||||
while((VP_DirEnt = ::readdir(VH_File))!=0)
|
||||
|
Reference in New Issue
Block a user