aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-12-08 22:54:39 +0100
committerdec05eba <dec05eba@protonmail.com>2022-12-08 22:54:39 +0100
commit108a34e2c0dae860b7ee75c9a489d98a4acd5b57 (patch)
tree420bf95483c28f67d665caa78a82b7dd24d15974
parentc073098942779cfe327fd3c224ea49b68700bc03 (diff)
Fix compile: readd countof
-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 {