Patch to fix implicit declaration warning/error (#2) - gnuskii - GNUSki improved for ascii skiing experience.
 (HTM) git clone git://bitreich.org/gnuskii git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gnuskii
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 8ef1f6f6500b7ed6cde5af625c040f9071f121dd
 (DIR) parent 4e94a70eef7056ec4dfe7310ff77d7607789cb2b
 (HTM) Author: Rudolf Olah <89982117+rudolfolah@users.noreply.github.com>
       Date:   Tue, 23 Jul 2024 20:13:33 -0400
       
       Patch to fix implicit declaration warning/error (#2)
       
       When compiling gnuski on macOS sonoma, the following error is raised due to an implicit declaration:
       
       ```
       gcc -O2 -o gnuski main.c objects.c -lncurses
       main.c:45:3: error: call to undeclared function 'setupColors'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
       setupColors ();
       ^
       ```
       
       This patches fixes this issue.
       
       Originally created on 2023-10-15 by Thierry Moisan: https://sourceforge.net/p/gnuski/patches/2/
       Diffstat:
         M src/objects.h                       |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/objects.h b/src/objects.h
       @@ -49,4 +49,6 @@ void draw (struct Object o, char facing);
        /* Checks for collision between a player object and a target */
        int collision (struct Object player, struct Object target);
        
       +void setupColors ();
       +
        #endif