diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-12-08 22:54:39 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-12-08 22:54:39 +0100 |
commit | 108a34e2c0dae860b7ee75c9a489d98a4acd5b57 (patch) | |
tree | 420bf95483c28f67d665caa78a82b7dd24d15974 /src | |
parent | c073098942779cfe327fd3c224ea49b68700bc03 (diff) |
Fix compile: readd countof
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 4 |
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 { |