MAMEWorld >> News
View all threads Index   Flat Mode Flat  

krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM
Re: MAME? In my browser? It's more likely than you think.
10/05/11 12:26 AM


Very awesome. Very awesome, indeed.

I noticed that they encountered some porting issues, mainly symbol conflicts with newlib.

Are any of those changes getting ported back to baseline MAME? It seems like it would be a good idea.


Quote:


The Native Client toolchain currently ships with newlib, which is a lightweight libc implementation that differs slightly from the more commonly used glibc. The newlib-related problems we encountered during the port were all minor and could be fixed in a few minutes. We list them here for completeness:

- One of the MAME classes had a member named getc, which clashed with the newlib macro for getc. It is not clear why this did not cause problems with glibc. We fixed this problem by simply inserting "#undef getc" just before the field.

- The sound emulation defined a static variable named infinity, which clashed with a symbol defined by the math library. We fixed this problem by simply renaming infinity to spu_infinity.

- Another part of sound emulation #defined its own version of log2(), which was already defined in the math library. Guarding it with #if !defined(log2) solved the problem.

- In the CPU emulation, an enum contained the symbol _ADD, which clashed with some unknown header file #define. Adding #undef _ADD before the enum fixed the problem.




However, rather than #undef conflicts, I'd rename the member/variable in question.


GroovyMAME support forum on BYOAC







Entire thread
Subject Posted by Posted on
* MAME? In my browser? It's more likely than you think. R. Belmont 10/04/11 11:34 AM
. * Re: MAME? In my browser? It's more likely than you think. Digitalghost  10/10/11 08:00 PM
. * Re: MAME? In my browser? It's more likely than you think. drewcifer  10/10/11 08:50 PM
. * Re: MAME? In my browser? It's more likely than you think. Firehawke  10/07/11 10:27 AM
. * Re: MAME? In my browser? Thats so 2005 mamegod  10/05/11 03:09 PM
. * Re: MAME? In my browser? Thats so 2005 R. Belmont  10/05/11 04:19 PM
. * Re: MAME? In my browser? Thats so 2005 StilettoAdministrator  10/05/11 04:46 PM
. * Re: MAME? In my browser? It's more likely than you think. Naibo  10/05/11 01:44 AM
. * Re: MAME? In my browser? It's more likely than you think. krick  10/05/11 12:26 AM
. * Re: MAME? In my browser? It's more likely than you think. R. Belmont  10/05/11 11:15 AM
. * Re: MAME? In my browser? It's more likely than you think. jonwil  10/04/11 08:42 PM
. * Re: MAME? In my browser? It's more likely than you think. R. Belmont  10/07/11 11:17 AM
. * Re: MAME? In my browser? It's more likely than you think. Tom Braider  10/04/11 08:22 PM
. * Re: MAME? In my browser? It's more likely than you think. R. Belmont  10/07/11 11:18 AM
. * Re: MAME? In my browser? It's more likely than you think. Tom Braider  10/07/11 11:49 AM
. * Then again, I can't recall the last time I was able to play MAME in windowed mode. [nt] Tom Braider  10/10/11 10:15 AM
. * Re: MAME? In my browser? It's more likely than you think. etabeta  10/05/11 08:48 AM
. * Re: MAME? In my browser? It's more likely than you think. Tom Braider  10/05/11 11:35 AM
. * Re: MAME? In my browser? It's more likely than you think. B2K24  10/04/11 06:38 PM
. * Re: MAME? In my browser? It's more likely than you think. Cyberzinho Punk  10/04/11 03:15 PM
. * and for those of you playing the home game... StilettoAdministrator  10/04/11 12:39 PM
. * Re: and for those of you playing the home game... "The Manuel"  10/04/11 01:18 PM
. * Re: MAME? In my browser? It's more likely than you think. italieAdministrator  10/04/11 12:31 PM
. * Re: MAME? In my browser? It's more likely than you think. R. Belmont  10/04/11 07:20 PM
. * Re: MAME? In my browser? It's more likely than you think. T-2000  10/04/11 08:04 PM
. * Re: MAME? In my browser? It's more likely than you think. R. Belmont  10/04/11 11:29 PM
. * Re: MAME? In my browser? It's more likely than you think. mogli  10/04/11 08:56 PM
. * Re: MAME? In my browser? It's more likely than you think. etabeta  10/05/11 08:45 AM
. * Re: MAME? In my browser? It's more likely than you think. Cypress  10/04/11 12:01 PM
. * Re: MAME? In my browser? It's more likely than you think. mesk  10/05/11 12:02 PM

Extra information Permissions
Moderator:  John IV, Robbbert, Tafoid 
0 registered and 142 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 6908