replace legacy preprocessor tests for linux with POSIX compliant ones

This commit is contained in:
Axel Kohlmeyer
2020-05-03 01:04:52 -04:00
parent d5b9948129
commit fa2a6d7c6b
5 changed files with 9 additions and 9 deletions

View File

@ -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",