Project: Fixed compiling with clang
This commit is contained in:
parent
91c9b634f4
commit
b9f93b8fa5
3
gui.h
3
gui.h
@ -1,6 +1,7 @@
|
|||||||
#include "simdata.h"
|
#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 gui_continue_request(struct simdata_t*);
|
||||||
int end_gui();
|
int end_gui();
|
||||||
int gui_error(char *);
|
int gui_error(char *);
|
||||||
|
@ -146,11 +146,11 @@ int init_aalib(WINDOW *win,int fullscreen){
|
|||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
int clean_aalib(){
|
int clean_aalib(){
|
||||||
aa_close(aactx);
|
aa_close(aactx);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#ifndef GUI_DISPLAY
|
||||||
|
|
||||||
#include <ncurses.h>
|
#include <ncurses.h>
|
||||||
int update_general_terminal_output(WINDOW *win, struct simdata_t *simdata);
|
int update_general_terminal_output(WINDOW *win, struct simdata_t *simdata);
|
||||||
int update_display_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_AALIB,
|
||||||
FB_BRAILLE
|
FB_BRAILLE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#define GUI_DISPLAY
|
||||||
|
2
main.c
2
main.c
@ -96,7 +96,7 @@ int main(int argc, char* argd[] ){
|
|||||||
#ifndef USE_AALIB
|
#ifndef USE_AALIB
|
||||||
if(fb_driver==FB_AALIB){
|
if(fb_driver==FB_AALIB){
|
||||||
printf("ERROR:Project wasn't compiled with aalib support.\n");
|
printf("ERROR:Project wasn't compiled with aalib support.\n");
|
||||||
help();
|
help(argd[0]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user