Skip to content

Commit

Permalink
add CPP extern "C" to rp6502.h (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
rumbledethumps authored Feb 12, 2024
1 parent 689c0f0 commit 3729744
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mos-platform/rp6502/rp6502.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#ifndef _RP6502_H
#define _RP6502_H

#ifdef __cplusplus
extern "C" {
#endif

/* RP6502 RIA $FFE0-$FFF9 */
struct __RP6502 {
const unsigned char ready;
Expand Down Expand Up @@ -216,4 +220,8 @@ typedef enum {
FR_INVALID_PARAMETER /* Given parameter is invalid */
} FRESULT;

#ifdef __cplusplus
}
#endif

#endif /* _RP6502_H */

0 comments on commit 3729744

Please sign in to comment.