move progname to main.c from main.h to avoid linker dupliicate symboles

This commit is contained in:
2026-01-26 20:20:35 -05:00
parent f61761785a
commit 217a670d36
2 changed files with 3 additions and 1 deletions

3
main.c
View File

@@ -49,6 +49,9 @@
#include <fcntl.h>
#endif
char *progname;
int
main (int argc, char **argv)
{

1
main.h
View File

@@ -1,7 +1,6 @@
#include <SDL/SDL.h>
#include <GL/gl.h>
char *progname;
int init (struct game *g);
void display (struct game *g);