Skip to content

Commit

Permalink
Add missing header includes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bonimy committed Sep 24, 2022
1 parent c5b52ab commit b2f23ab
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/asar/asar_math.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <cstdint>

void initmathcore();
void deinitmathcore();

Expand Down
4 changes: 4 additions & 0 deletions src/asar/assembleblock.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#include "assocarr.h"
#include "autoarray.h"
#include "libstr.h"

enum { arch_65816, arch_spc700, arch_superfx };
extern int arch;

Expand Down
4 changes: 4 additions & 0 deletions src/asar/macro.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#include "assocarr.h"
#include "autoarray.h"
#include "libstr.h"

void startmacro(const char* line);
void tomacro(const char* line);
void endmacro(bool insert);
Expand Down
4 changes: 3 additions & 1 deletion src/asar/platform/windows/thread-helpers-win32.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

#if defined(_WIN32)

#include <processthreadsapi.h>
#include <windows.h>

// windows.h must be called first
#include <processthreadsapi.h>

struct function_pointer_wrapper /*have this struct at global level*/
{
static void (*fiber_callback)(void*);
Expand Down
3 changes: 2 additions & 1 deletion src/asar/table.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

// data structures for the "table" command

#include <cstdint>

class table_page {
public:
uint32_t chars[256];
Expand Down

0 comments on commit b2f23ab

Please sign in to comment.