replace legacy preprocessor tests for linux with POSIX compliant ones
This commit is contained in:
@ -60,7 +60,7 @@
|
||||
#include <sys/utsname.h>
|
||||
#endif
|
||||
|
||||
#if defined(__linux)
|
||||
#if defined(__linux__)
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
@ -345,7 +345,7 @@ void Info::command(int narg, char **arg)
|
||||
fprintf(out,"Maximum working set size: %.4g Mbyte\n",
|
||||
(double)pmc.PeakWorkingSetSize/1048576.0);
|
||||
#else
|
||||
#if defined(__linux)
|
||||
#if defined(__linux__)
|
||||
struct mallinfo mi;
|
||||
mi = mallinfo();
|
||||
fprintf(out,"Current reserved memory pool size: %.4g Mbyte\n",
|
||||
|
||||
Reference in New Issue
Block a user