libretro / libretro-meta

The Unlicense
4 stars 3 forks source link

[mgba] core doesn't build on platform=vita #89

Open codestation opened 7 years ago

codestation commented 7 years ago

The mgba core doesn't build when compiled with ´platform=vita make -f Makefile.libretro´. It has no problems when build without platform (linux) so it must be a configuration problem.

src/gba/core.c: In function '_GBACoreLoadConfig':
src/gba/core.c:243:51: error: 'gbacore' undeclared (first use in this function); did you mean 'core'?
  mCoreConfigGetIntValue(config, "threadedVideo", &gbacore->threadedVideo);

It seems that gbacore doesn't get defined in that function because a #if preprocessor statement in the same function. I moved the gbacore definition outside the define and it compiled successfully but i am not sure is that is the proper fix.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/47639370-mgba-core-doesn-t-build-on-platform-vita?utm_campaign=plugin&utm_content=tracker%2F56438981&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F56438981&utm_medium=issues&utm_source=github).