diff --git a/hyper.h b/hyper.h index ffb4b2f1..25bb4075 100644 --- a/hyper.h +++ b/hyper.h @@ -659,16 +659,6 @@ namespace scores { void load(); } namespace leader { void showMenu(); void handleKey(int sym, int uni); } #endif -struct hint { - time_t last; - function usable; - function display; - function action; - }; - -extern hint hints[]; -int counthints(); - int textwidth(int siz, const string &str); #if CAP_GL int gl_width(int size, const char *s); diff --git a/quit.cpp b/quit.cpp index 5ce38c86..adc50392 100644 --- a/quit.cpp +++ b/quit.cpp @@ -40,7 +40,16 @@ void noaction() {} function cancel = noaction; -hint hints[] = { +#if HDR +struct hint { + time_t last; + function usable; + function display; + function action; + }; +#endif + +EX hint hints[] = { { 0, @@ -512,7 +521,7 @@ EX void handleKeyQuit(int sym, int uni) { } } -int counthints() { +EX int counthints() { for(int h=0;; h++) if(hints[h].last < 0) return h; }