diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-06 01:21:08 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-06 01:21:08 +0200 |
commit | cf8707bf2ede99d8543d806355eee088bdc1376b (patch) | |
tree | 0f1ffc52906d9f66f75631bd97dfb0dcf91989ad /c/debug.h | |
parent | c0024748e8ff2f46e5d37a054fa349f24ddc497f (diff) | |
download | EpisodeBrowser-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |