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