libretro / beetle-ngp-libretro

Standalone port of Mednafen NGP to the libretro API, itself a fork of Neopop.
GNU General Public License v2.0
11 stars 43 forks source link

Fix compiler error due to missing assert.h include #90

Closed garbear closed 4 years ago

garbear commented 4 years ago

While building the core, I got the following error:

mednafen/ngp/interrupt.cpp: In function ‘void set_interrupt(uint8_t, bool)’:
mednafen/ngp/interrupt.cpp:73:4: error: ‘assert’ was not declared in this scope
    assert(index < 24);
    ^~~~~~

On inspection, the file calls assert(), but the assert.h header is not included. This PR adds the missing include.

After applying the patch, the core builds and loads successfully.