sgl

diff src/wsys_cocoa.m @ 41:f4ea3a88b05a

macos build fixes. Patch by Andrew Woods
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 25 Jan 2025 22:26:40 +0200
parents 46e90f9c1e0f
children
line diff
     1.1 --- a/src/wsys_cocoa.m	Thu Jun 28 03:42:26 2012 +0300
     1.2 +++ b/src/wsys_cocoa.m	Sat Jan 25 22:26:40 2025 +0200
     1.3 @@ -77,7 +77,7 @@
     1.4  
     1.5  
     1.6  static int init(void);
     1.7 -static void shutdown(void);
     1.8 +static void shutdown_app(void);
     1.9  
    1.10  /* video mode switching */
    1.11  static int set_vidmode(int xsz, int ysz);
    1.12 @@ -112,7 +112,7 @@
    1.13  static struct wsys_module ws = {
    1.14  	"cocoa", 0,
    1.15  	init,
    1.16 -	shutdown,
    1.17 +	shutdown_app,
    1.18  	set_vidmode,
    1.19  	get_vidmode,
    1.20  	create_window,
    1.21 @@ -303,7 +303,7 @@
    1.22  	return 0;
    1.23  }
    1.24  
    1.25 -static void shutdown(void)
    1.26 +static void shutdown_app(void)
    1.27  {
    1.28  	while(winlist) {
    1.29  		close_window(winlist->wid);
    1.30 @@ -423,7 +423,7 @@
    1.31  
    1.32  	if(!dummy.next) {
    1.33  		winlist = 0;
    1.34 -		shutdown();
    1.35 +		shutdown_app();
    1.36  	}
    1.37  }
    1.38