aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c4ef3bb..8e74185 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -65,6 +65,10 @@
#include <thread>
#include <mutex>
+#ifndef _countof
+#define _countof(x) (sizeof(x)/sizeof((x)[0]))
+#endif
+
static bool g_bPrintf = true;
enum class ViewMode {