Skip to content

Commit

Permalink
explicit add the cstdint header for clang compile
Browse files Browse the repository at this point in the history
fix the build errors with the clang15 and onward:
clang++ sendKey.cpp -I . -lpthread -Wall -Wpedantic -Wextra -o sendkey
sendKey.cpp:64:29: error: unknown type name 'uint32_t'
   64 |     buf.bCtrl = static_cast<uint32_t>(ctrl);
         |                             ^

Signed-off-by: Bo He <[email protected]>
Tracked-On: OAM-129122
  • Loading branch information
bhe4 authored and sysopenci committed Jan 8, 2025
1 parent 6387cc4 commit e7ed8e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sendKey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <string.h>
#include <iostream>
#include <cstdint>

#include "sendKey.h"

Expand Down

0 comments on commit e7ed8e3

Please sign in to comment.