remove gratuituous c++ dependency
This commit is contained in:
parent
d41a42dca4
commit
123653fda1
@ -1,3 +1,5 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
|
|
||||||
struct cr_rr {
|
struct cr_rr {
|
||||||
|
2
scsp.h
2
scsp.h
@ -1,3 +1,5 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
|
|
||||||
// Because the main CPU cannot access in units of 8 bits, so read and write in
|
// Because the main CPU cannot access in units of 8 bits, so read and write in
|
||||||
|
2
scu.h
2
scu.h
@ -1,3 +1,5 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
|
|
||||||
typedef struct scu_reg {
|
typedef struct scu_reg {
|
||||||
|
2
sh2.h
2
sh2.h
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
|
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
typedef struct sh2_reg {
|
typedef struct sh2_reg {
|
||||||
reg8 SMR; // 0x000
|
reg8 SMR; // 0x000
|
||||||
reg8 BRR; // 0x001
|
reg8 BRR; // 0x001
|
||||||
|
2
smpc.h
2
smpc.h
@ -1,3 +1,5 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
|
|
||||||
struct ioreg {
|
struct ioreg {
|
||||||
|
2
type.h
2
type.h
@ -1,8 +1,8 @@
|
|||||||
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
#define static_assert _Static_assert
|
#define static_assert _Static_assert
|
||||||
#define offsetof __builtin_offsetof
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef volatile uint8_t reg8;
|
typedef volatile uint8_t reg8;
|
||||||
|
2
vdp1.h
2
vdp1.h
@ -1,3 +1,5 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
|
|
||||||
/* command table */
|
/* command table */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user