From 74bcfbd94070091e1b126627eb73f837f40eb729 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sun, 22 Dec 2019 22:44:28 -0600 Subject: [PATCH] Make Sleep function static on linux to avoid compile errors --- Controllers/CorsairProController/CorsairProController.cpp | 2 +- Controllers/HyperXController/HyperXControllerDetect.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/CorsairProController/CorsairProController.cpp b/Controllers/CorsairProController/CorsairProController.cpp index 7bc10d5d3..386a0d027 100644 --- a/Controllers/CorsairProController/CorsairProController.cpp +++ b/Controllers/CorsairProController/CorsairProController.cpp @@ -15,7 +15,7 @@ #else #include -void Sleep(unsigned int milliseconds) +static void Sleep(unsigned int milliseconds) { usleep(1000 * milliseconds); } diff --git a/Controllers/HyperXController/HyperXControllerDetect.cpp b/Controllers/HyperXController/HyperXControllerDetect.cpp index a3c1339f3..e33450858 100644 --- a/Controllers/HyperXController/HyperXControllerDetect.cpp +++ b/Controllers/HyperXController/HyperXControllerDetect.cpp @@ -11,7 +11,7 @@ #else #include -void Sleep(unsigned int milliseconds) +static void Sleep(unsigned int milliseconds) { usleep(1000 * milliseconds); }