mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
fix error with the preprocessor.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14204 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
caeb22012a
commit
1b199fabe4
1 changed files with 3 additions and 3 deletions
|
|
@ -64,7 +64,7 @@ bool Autodetection::detect()
|
||||||
|
|
||||||
QStringList Autodetection::getMountpoints()
|
QStringList Autodetection::getMountpoints()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_WIN32
|
#if defined(Q_OS_WIN32)
|
||||||
QStringList tempList;
|
QStringList tempList;
|
||||||
QFileInfoList list = QDir::drives();
|
QFileInfoList list = QDir::drives();
|
||||||
for(int i=0; i<list.size();i++)
|
for(int i=0; i<list.size();i++)
|
||||||
|
|
@ -73,10 +73,10 @@ QStringList Autodetection::getMountpoints()
|
||||||
}
|
}
|
||||||
return tempList;
|
return tempList;
|
||||||
|
|
||||||
#elif Q_OS_MACX
|
#elif defined(Q_OS_MACX)
|
||||||
QDir dir("/Volumes");
|
QDir dir("/Volumes");
|
||||||
return dir.entryList();
|
return dir.entryList();
|
||||||
#elif Q_OS_LINUX
|
#elif defined(Q_OS_LINUX)
|
||||||
QStringList tempList;
|
QStringList tempList;
|
||||||
|
|
||||||
FILE *fp = fopen( "/proc/mounts", "r" );
|
FILE *fp = fopen( "/proc/mounts", "r" );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue