Commit 3c009773 authored by Pino Toscano's avatar Pino Toscano

__linux__ -> Q_OS_LINUX

svn path=/trunk/KDE/kdegraphics/okular/; revision=688273
parent eff4ffe9
......@@ -319,7 +319,7 @@ qulonglong DocumentPrivate::getTotalMemory()
if ( cachedValue )
return cachedValue;
#ifdef __linux__
#if defined(Q_OS_LINUX)
// if /proc/meminfo doesn't exist, return 128MB
QFile memFile( "/proc/meminfo" );
if ( !memFile.open( QIODevice::ReadOnly ) )
......@@ -353,7 +353,7 @@ qulonglong DocumentPrivate::getFreeMemory()
if ( lastUpdate.secsTo( QTime::currentTime() ) <= 2 )
return cachedValue;
#ifdef __linux__
#if defined(Q_OS_LINUX)
// if /proc/meminfo doesn't exist, return MEMORY FULL
QFile memFile( "/proc/meminfo" );
if ( !memFile.open( QIODevice::ReadOnly ) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment