From 108a34e2c0dae860b7ee75c9a489d98a4acd5b57 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 8 Dec 2022 22:54:39 +0100 Subject: Fix compile: readd countof --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 #include +#ifndef _countof +#define _countof(x) (sizeof(x)/sizeof((x)[0])) +#endif + static bool g_bPrintf = true; enum class ViewMode { -- cgit v1.2.3