Skip to content

Commit

Permalink
Apple compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbuchfink committed Aug 1, 2020
1 parent b4f6e86 commit c7a8165
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/system/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
#else
#include <unistd.h>
#include <sys/stat.h>
#ifndef __APPLE__
#include <sys/sysinfo.h>
#endif
#endif

using std::string;
using std::cout;
Expand Down Expand Up @@ -125,7 +127,7 @@ void reset_color(bool err) {
}

double total_ram() {
#ifdef WIN32
#if defined(WIN32) || defined(__APPLE__)
return 0.0;
#else
struct sysinfo info;
Expand Down

0 comments on commit c7a8165

Please sign in to comment.