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:
Dominik Riebeling 2007-08-05 22:13:40 +00:00
parent caeb22012a
commit 1b199fabe4

View file

@ -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" );