X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fxlockmore.h;h=5572580d8e6e4dfe226e1768cd3bbe978080451d;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=3eeae7894254f674273c6f3d13b30c959a328f70;hpb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;p=xscreensaver diff --git a/hacks/xlockmore.h b/hacks/xlockmore.h index 3eeae789..5572580d 100644 --- a/hacks/xlockmore.h +++ b/hacks/xlockmore.h @@ -112,10 +112,10 @@ ERROR! Sorry, xlockmore.h requires ANSI C (gcc, for example.) a struct in `MODULENAME_xscreensaver_function_table', and a pointer to that in `xscreensaver_function_table'. - In a Cocoa world, we only define the prefixed symbol; + In a Cocoa or Android world, we only define the prefixed symbol; the un-prefixed symbol does not exist. */ -#ifdef HAVE_COCOA +#ifdef HAVE_MOBILE # define XSCREENSAVER_LINK(NAME) #else # define XSCREENSAVER_LINK(NAME) \ @@ -123,10 +123,10 @@ ERROR! Sorry, xlockmore.h requires ANSI C (gcc, for example.) #endif -# if !defined(USE_GL) || defined(HAVE_COCOA) +# if !defined(USE_GL) || defined(HAVE_COCOA) || defined(HAVE_ANDROID) # define xlockmore_pick_gl_visual 0 # define xlockmore_validate_gl_visual 0 -# endif /* !USE_GL || HAVE_COCOA */ +# endif /* !USE_GL || HAVE_COCOA || HAVE_ANDROID */ # ifdef USE_GL # define XLOCKMORE_FPS xlockmore_gl_compute_fps @@ -179,7 +179,8 @@ ERROR! Sorry, xlockmore.h requires ANSI C (gcc, for example.) refresh_ ## PREFIX, \ release_ ## PREFIX, \ PREFIX ## _handle_event, \ - & PREFIX ## _opts \ + & PREFIX ## _opts, \ + 0 \ }; \ \ struct xscreensaver_function_table \