deltabeard / Peanut-GB

A Game Boy (DMG) emulator single header library written in C99. Performance is prioritised over accuracy.
https://projects.deltabeard.com/peanutgb/
276 stars 35 forks source link

Make Peanut-GB strictly C89 #85

Open deltabeard opened 1 year ago

deltabeard commented 1 year ago

This means:

Peanut-GB must compile with Visual C++ 6 (VC6).

deltabeard commented 1 year ago

2471c89d2ada67dfffe676c5509db13ea7cf21da Compiles with MSVC 2. Not strictly C89 compliant though, but I'm not sure it's necessary and useful features, such as bitfields of various types, and anonymous structs aren't available in C89 but are still supported in ancient compilers like MSVC 2.