Introduction
Introduction Statistics Contact Development Disclaimer Help
Patch to fix implicit declaration warning/error (#2) - gnuskii - GNUSki improve…
git clone git://bitreich.org/gnuskii git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws…
Log
Files
Refs
Tags
README
LICENSE
---
commit 8ef1f6f6500b7ed6cde5af625c040f9071f121dd
parent 4e94a70eef7056ec4dfe7310ff77d7607789cb2b
Author: Rudolf Olah <[email protected]>
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 …
```
gcc -O2 -o gnuski main.c objects.c -lncurses
main.c:45:3: error: call to undeclared function 'setupColors'; ISO C99 and late…
setupColors ();
^
```
This patches fixes this issue.
Originally created on 2023-10-15 by Thierry Moisan: https://sourceforge.net/p/g…
Diffstat:
M src/objects.h | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
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
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.