Skip to content

Commit b2f23ab

Browse files
committed
Add missing header includes
One feature of clang-format is auto-sorting #includes. This has the side-effect of breaking files that don't properly include headers in a self-contained way.
1 parent c5b52ab commit b2f23ab

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

src/asar/asar_math.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22

3+
#include <cstdint>
4+
35
void initmathcore();
46
void deinitmathcore();
57

src/asar/assembleblock.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#pragma once
22

3+
#include "assocarr.h"
4+
#include "autoarray.h"
5+
#include "libstr.h"
6+
37
enum { arch_65816, arch_spc700, arch_superfx };
48
extern int arch;
59

src/asar/macro.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#pragma once
22

3+
#include "assocarr.h"
4+
#include "autoarray.h"
5+
#include "libstr.h"
6+
37
void startmacro(const char* line);
48
void tomacro(const char* line);
59
void endmacro(bool insert);

src/asar/platform/windows/thread-helpers-win32.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
#if defined(_WIN32)
44

5-
#include <processthreadsapi.h>
65
#include <windows.h>
76

7+
// windows.h must be called first
8+
#include <processthreadsapi.h>
9+
810
struct function_pointer_wrapper /*have this struct at global level*/
911
{
1012
static void (*fiber_callback)(void*);

src/asar/table.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
21
// data structures for the "table" command
32

3+
#include <cstdint>
4+
45
class table_page {
56
public:
67
uint32_t chars[256];

0 commit comments

Comments
 (0)