From f75adc3c91de30455c2fa38573a07e8a0ee31ed9 Mon Sep 17 00:00:00 2001 From: Ihor Dutchak Date: Tue, 17 Aug 2021 17:17:29 +0300 Subject: [PATCH] Correct example including hidapi.h --- hidtest/test.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hidtest/test.c b/hidtest/test.c index bbea421..03956ea 100644 --- a/hidtest/test.c +++ b/hidtest/test.c @@ -18,7 +18,8 @@ #include #include #include -#include "hidapi.h" + +#include // Headers needed for sleeping. #ifdef _WIN32 @@ -175,7 +176,7 @@ int main(int argc, char* argv[]) printf("waiting...\n"); if (res < 0) printf("Unable to read()\n"); - #ifdef WIN32 + #ifdef _WIN32 Sleep(500); #else usleep(500*1000); @@ -193,7 +194,7 @@ int main(int argc, char* argv[]) /* Free static HIDAPI objects. */ hid_exit(); -#ifdef WIN32 +#ifdef _WIN32 system("pause"); #endif