From 549728d30b3792e254435ebe22ef719d32423443 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Fri, 5 Mar 2021 19:38:33 +0100 Subject: [PATCH] Move platform #if to top of the file --- src/main_sdl2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main_sdl2.cpp b/src/main_sdl2.cpp index 13f926e6..302fcf29 100644 --- a/src/main_sdl2.cpp +++ b/src/main_sdl2.cpp @@ -1,6 +1,8 @@ /* MIT License - Copyright (c) 2019-2021 Francis Van Roie For full license information read the LICENSE file in the project folder */ +#if defined(WINDOWS) || defined(POSIX) + #if defined(WINDOWS) #include #endif @@ -167,7 +169,6 @@ void loop() // delay(6); } -#if defined(WINDOWS) || defined(POSIX) void usage(char* progName) {