From cf8707bf2ede99d8543d806355eee088bdc1376b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 6 Aug 2022 01:21:08 +0200 Subject: 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. --- c/debug.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'c/debug.h') 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 + /* 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 -- cgit v1.2.3