Project: Fixed compiling with clang

This commit is contained in:
(Tim) Efthimis Kritikos 2024-03-01 21:34:23 +00:00
parent 91c9b634f4
commit b9f93b8fa5
4 changed files with 9 additions and 3 deletions

3
gui.h
View File

@ -1,6 +1,7 @@
#include "simdata.h"
#include "gui_display.h"
int start_gui();
int start_gui(enum FB_DRIVER_t);
int gui_continue_request(struct simdata_t*);
int end_gui();
int gui_error(char *);

View File

@ -146,11 +146,11 @@ int init_aalib(WINDOW *win,int fullscreen){
return 1;
return 0;
}
#endif
int clean_aalib(){
aa_close(aactx);
return 0;
}
#endif

View File

@ -1,3 +1,5 @@
#ifndef GUI_DISPLAY
#include <ncurses.h>
int update_general_terminal_output(WINDOW *win, struct simdata_t *simdata);
int update_display_terminal_output(WINDOW *win, struct simdata_t *simdata);
@ -6,3 +8,6 @@ enum FB_DRIVER_t{
FB_AALIB,
FB_BRAILLE
};
#endif
#define GUI_DISPLAY

2
main.c
View File

@ -96,7 +96,7 @@ int main(int argc, char* argd[] ){
#ifndef USE_AALIB
if(fb_driver==FB_AALIB){
printf("ERROR:Project wasn't compiled with aalib support.\n");
help();
help(argd[0]);
return 1;
}
#endif