diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-02-05 19:22:46 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-02-05 19:22:46 +0100 |
commit | e5bb0921ef06a98b77b3e91d9b2f77caaa1f89a9 (patch) | |
tree | 01e17bf81572f1f66244c61a8658b750f5384936 /src/main-gcu.c | |
parent | c8bd25efe980a6455fef1f6622fe5c69d1ed7a4d (diff) |
Build: Produce multiple independent executables
Diffstat (limited to 'src/main-gcu.c')
-rw-r--r-- | src/main-gcu.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/main-gcu.c b/src/main-gcu.c index c253daf2..ac41272c 100644 --- a/src/main-gcu.c +++ b/src/main-gcu.c @@ -38,12 +38,11 @@ * Consider the use of "savetty()" and "resetty()". XXX XXX XXX */ +#include "main.h" #include "util.h" #include "variable.h" -#ifdef USE_GCU - #include <limits.h> /* @@ -794,7 +793,7 @@ static void hook_quit(cptr str) * * Someone should really check the semantics of "initscr()" */ -errr init_gcu(int argc, char **argv) +int init_gcu(int argc, char **argv) { int i; @@ -1015,7 +1014,12 @@ errr init_gcu(int argc, char **argv) return (0); } - -#endif /* USE_GCU */ - - +int main(int argc, char *argv[]) +{ + return main_real( + argc, + argv, + "gcu", + init_gcu, + " -- -b Requests big screen\n"); +} |