Only define driveLetterExists() when we need it, as _getdrives() is not
always available. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3059 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -641,7 +641,9 @@ err:
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_DRIVE_LETTERS
|
#if defined(HAVE_DRIVE_LETTERS) && defined(HAVE_CWD_PER_DRIVE)
|
||||||
|
// This code is only needed if we have a current working directory
|
||||||
|
// per drive.
|
||||||
// letter is 0 based: 0 = A, 1 = B, ...
|
// letter is 0 based: 0 = A, 1 = B, ...
|
||||||
bool
|
bool
|
||||||
driveLetterExists(int letter)
|
driveLetterExists(int letter)
|
||||||
@@ -652,7 +654,7 @@ driveLetterExists(int letter)
|
|||||||
|
|
||||||
return ((drives >> letter) & 1) != 0;
|
return ((drives >> letter) & 1) != 0;
|
||||||
}
|
}
|
||||||
#endif /* HAVE_DRIVE_LETTERS */
|
#endif /* if defined(HAVE_DRIVE_LETTERS) && defined(HAVE_CWD_PER_DRIVE) */
|
||||||
|
|
||||||
// helper for expandPath, expanding an absolute path
|
// helper for expandPath, expanding an absolute path
|
||||||
// returns a pointer to the end of the filled in part of dest.
|
// returns a pointer to the end of the filled in part of dest.
|
||||||
|
|||||||
Reference in New Issue
Block a user