aboutsummaryrefslogtreecommitdiff
path: root/c/debug.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-06 01:21:08 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-06 01:21:08 +0200
commitcf8707bf2ede99d8543d806355eee088bdc1376b (patch)
tree0f1ffc52906d9f66f75631bd97dfb0dcf91989ad /c/debug.h
parentc0024748e8ff2f46e5d37a054fa349f24ddc497f (diff)
downloadEpisodeBrowser-cf8707bf2ede99d8543d806355eee088bdc1376b.tar.gz
Use typedefs when interacting with Win32 API.
It's not like they're ever going to change the definition of WORD (knock on wood) -- but I guess it's proper to use them as if their definitions might change.
Diffstat (limited to 'c/debug.h')
-rw-r--r--c/debug.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/c/debug.h b/c/debug.h
index f58c700..e9cefa3 100644
--- a/c/debug.h
+++ b/c/debug.h
@@ -1,6 +1,8 @@
#ifndef DEBUG_H
#define DEBUG_H
+#include <windows.h>
+
/* Benchmark objects measure and print the time in microseconds
* between construction and destruction. Given a unique id, they also
* calculate a running average of the last `avgmax' instances of
@@ -21,6 +23,6 @@ struct Benchmark
};
/* Return name of given window message (WM_*). */
-const char* WmName(unsigned uMsg);
+const char* WmName(UINT uMsg);
#endif