Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[smb] replace some #ifndef _LINUX with TARGET_WINDOWS

  • Loading branch information...
commit 6b4f2fa20ce008beb5ece55c857f30af831dd553 1 parent e2224e1
Joakim Plate elupus authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +5 5 xbmc/filesystem/SMBDirectory.cpp
10 xbmc/filesystem/SMBDirectory.cpp
@@ -145,7 +145,7 @@ bool CSMBDirectory::GetDirectory(const CStdString& strPath, CFileItemList &items
145 145 // set this here to if the stat should fail
146 146 bIsDir = (aDir.type == SMBC_DIR);
147 147
148   -#ifndef _LINUX
  148 +#ifdef TARGET_WINDOWS
149 149 struct __stat64 info = {0};
150 150 #else
151 151 struct stat info = {0};
@@ -160,7 +160,7 @@ bool CSMBDirectory::GetDirectory(const CStdString& strPath, CFileItemList &items
160 160 if( smbc_stat(strFullName.c_str(), &info) == 0 )
161 161 {
162 162
163   -#ifndef _LINUX
  163 +#ifdef TARGET_WINDOWS
164 164 if ((info.st_mode & S_IXOTH))
165 165 hidden = true;
166 166 #else
@@ -346,7 +346,7 @@ bool CSMBDirectory::Create(const char* strPath)
346 346 int result = smbc_mkdir(strFileName.c_str(), 0);
347 347 success = (result == 0 || EEXIST == errno);
348 348 if(!success)
349   -#ifndef _LINUX
  349 +#ifdef TARGET_WINDOWS
350 350 CLog::Log(LOGERROR, "%s - Error( %s )", __FUNCTION__, get_friendly_nt_error_msg(smb.ConvertUnixToNT(errno)));
351 351 #else
352 352 CLog::Log(LOGERROR, "%s - Error( %s )", __FUNCTION__, strerror(errno));
@@ -368,7 +368,7 @@ bool CSMBDirectory::Remove(const char* strPath)
368 368
369 369 if(result != 0 && errno != ENOENT)
370 370 {
371   -#ifndef _LINUX
  371 +#ifdef TARGET_WINDOWS
372 372 CLog::Log(LOGERROR, "%s - Error( %s )", __FUNCTION__, get_friendly_nt_error_msg(smb.ConvertUnixToNT(errno)));
373 373 #else
374 374 CLog::Log(LOGERROR, "%s - Error( %s )", __FUNCTION__, strerror(errno));
@@ -388,7 +388,7 @@ bool CSMBDirectory::Exists(const char* strPath)
388 388 CPasswordManager::GetInstance().AuthenticateURL(url);
389 389 CStdString strFileName = smb.URLEncode(url);
390 390
391   -#ifndef _LINUX
  391 +#ifdef TARGET_WINDOWS
392 392 SMB_STRUCT_STAT info;
393 393 #else
394 394 struct stat info;

0 comments on commit 6b4f2fa

Please sign in to comment.
Something went wrong with that request. Please try again.