Skip to content

Commit 8b6c0b6

Browse files
markpizzpkoning2
authored andcommitted
SAGE: Remove irrelevant platform #ifdefs and redundant includes
1 parent d329907 commit 8b6c0b6

File tree

5 files changed

+0
-34
lines changed

5 files changed

+0
-34
lines changed

SAGE/i8272.c

-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@
4343
#include "m68k_cpu.h"
4444
#include "chip_defs.h"
4545

46-
#if defined (_WIN32)
47-
#include <windows.h>
48-
#endif
49-
5046
#include "sim_imd.h"
5147

5248
/* internal state machine:

SAGE/m68k_cpu.c

-7
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@
3636
*/
3737

3838
#include "m68k_cpu.h"
39-
#include <ctype.h>
40-
41-
#if defined(_WIN32)
42-
#include <windows.h>
43-
#else
44-
#include <unistd.h>
45-
#endif
4639

4740
/* status reg flags */
4841
#define FLAG_C 0x0001

SAGE/m68k_mem.c

-7
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@
2828
*/
2929

3030
#include "m68k_cpu.h"
31-
#include <ctype.h>
32-
33-
#if defined(_WIN32)
34-
#include <windows.h>
35-
#else
36-
#include <unistd.h>
37-
#endif
3831

3932
/* io hash */
4033
#define IOHASHSIZE 97 /* must be prime */

SAGE/m68k_parse.tab.c

-8
Original file line numberDiff line numberDiff line change
@@ -393,14 +393,6 @@
393393
*/
394394

395395
#include "m68k_cpu.h"
396-
#include <ctype.h>
397-
#include <string.h>
398-
399-
#if defined(_WIN32)
400-
#include <windows.h>
401-
#else
402-
#include <unistd.h>
403-
#endif
404396

405397
struct _ea {
406398
int ea;

SAGE/m68k_sys.c

-8
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@
3232
*/
3333

3434
#include "m68k_cpu.h"
35-
#include <ctype.h>
36-
#include <string.h>
37-
38-
#if defined(_WIN32)
39-
#include <windows.h>
40-
#else
41-
#include <unistd.h>
42-
#endif
4335

4436
t_stat set_iobase(UNIT *uptr, int32 val, CONST char *cptr, void *desc)
4537
{

0 commit comments

Comments
 (0)