Skip to content

Improve portability#8

Open
fruhland wants to merge 1 commit intoNJU-ProjectN:masterfrom
hhuOS:pr/c++-compatibility
Open

Improve portability#8
fruhland wants to merge 1 commit intoNJU-ProjectN:masterfrom
hhuOS:pr/c++-compatibility

Conversation

@fruhland
Copy link

@fruhland fruhland commented Oct 7, 2025

When porting LiteNES to our C++ based teaching operating system hhuOS, I noticed some minor issues, that I solved in this PR:

  1. hal.h/nes.h: Wrapping the function declarations in an extern "C" block, when __cplusplus is defined, allows LiteNES to be compiled as part of a C++ application.
  2. fce.c: wait_for_frame() should be declared in a header file. I moved the declaration to hal.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant