Skip to content

Commit

Permalink
Add stdint.h includes
Browse files Browse the repository at this point in the history
  • Loading branch information
clementgallet committed Jan 2, 2021
1 parent 2f5d5ff commit bde2a0d
Show file tree
Hide file tree
Showing 28 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/library/BusyLoopDetection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <dlfcn.h>
#include <sstream>
#include <string.h>
#include <stdint.h>
#include "GlobalState.h"
#include "checkpoint/ProcSelfMaps.h"
#include "checkpoint/ProcMapsArea.h"
Expand Down
1 change: 1 addition & 0 deletions src/library/DeterministicTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "BusyLoopDetection.h"

#include <sched.h> // sched_yield()
#include <stdint.h>

namespace libtas {

Expand Down
2 changes: 2 additions & 0 deletions src/library/audio/AudioContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include "AudioPlayer.h"
#include "../global.h" // shared_config

#include <stdint.h>

#define MAXBUFFERS 2048 // Max I've seen so far: 960
#define MAXSOURCES 256 // Max I've seen so far: 112

Expand Down
1 change: 1 addition & 0 deletions src/library/audio/AudioSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "../global.h" // shared_config
#include "hook.h"
#include <stdlib.h>
#include <stdint.h>
#include "../DeterministicTimer.h" // detTimer.fakeAdvanceTimer()

namespace libtas {
Expand Down
2 changes: 2 additions & 0 deletions src/library/audio/alsa/pcm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#include "../../DeterministicTimer.h"
#include "../../checkpoint/ThreadManager.h"

#include <stdint.h>

namespace libtas {

static int buffer_size = 4096; // in samples
Expand Down
2 changes: 2 additions & 0 deletions src/library/audio/cubeb/cubeb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include "../AudioSource.h"
#include "../AudioBuffer.h"

#include <stdint.h>

namespace libtas {

int cubeb_init(cubeb ** context, char const * context_name, char const * backend_name)
Expand Down
2 changes: 2 additions & 0 deletions src/library/audio/cubeb/cubeb.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include "../../global.h"
#include "../../../external/cubeb.h"

#include <stdint.h>

namespace libtas {

OVERRIDE int cubeb_init(cubeb ** context, char const * context_name, char const * backend_name);
Expand Down
1 change: 1 addition & 0 deletions src/library/checkpoint/Checkpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <sys/mman.h>
#include <cstring>
#include <csignal>
#include <stdint.h>
#include <X11/Xlibint.h>
#include <X11/Xlib-xcb.h>
#include <sys/statvfs.h>
Expand Down
1 change: 1 addition & 0 deletions src/library/frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "sdl/sdlwindows.h"
#include "sdl/sdlevents.h"
#include <iomanip>
#include <stdint.h>
#include "timewrappers.h" // clock_gettime
#include "checkpoint/ThreadManager.h"
#include "checkpoint/SaveStateManager.h"
Expand Down
1 change: 1 addition & 0 deletions src/library/frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#define LIBTAS_FRAME_H_INCL

#include <functional>
#include <stdint.h>
#include "renderhud/RenderHUD.h"

namespace libtas {
Expand Down
1 change: 1 addition & 0 deletions src/library/renderhud/RenderHUD.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <list>
#include <utility>
#include <string>
#include <stdint.h>

namespace libtas {
/* This class handles the display of some text over the game screen (HUD).
Expand Down
2 changes: 2 additions & 0 deletions src/library/wine/kernel32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include "../logging.h"
#include "../DeterministicTimer.h"

#include <stdint.h>

namespace libtas {

typedef union _LARGE_INTEGER {
Expand Down
1 change: 1 addition & 0 deletions src/program/Context.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "Config.h"
// #include <X11/Xlib.h>
#include <xcb/xcb.h>
#include <stdint.h>
#include "ConcurrentQueue.h"
#include "../shared/GameInfo.h"

Expand Down
1 change: 1 addition & 0 deletions src/program/GameLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <sys/stat.h> // stat
#include <sys/wait.h> // waitpid
#include <X11/X.h>
#include <stdint.h>

GameLoop::GameLoop(Context* c) : movie(MovieFile(c)), context(c), keysyms(xcb_key_symbols_alloc(c->conn), xcb_key_symbols_free) {}

Expand Down
1 change: 1 addition & 0 deletions src/program/SaveState.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "movie/MovieFile.h"
#include <string>
#include <memory>
#include <stdint.h>

class SaveState {
public:
Expand Down
1 change: 1 addition & 0 deletions src/program/SaveStateList.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "Context.h"
#include "SaveState.h"
#include <string>
#include <stdint.h>

namespace SaveStateList {

Expand Down
1 change: 1 addition & 0 deletions src/program/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <iostream>
#include <fcntl.h>
#include <getopt.h>
#include <stdint.h>

Context context;

Expand Down
1 change: 1 addition & 0 deletions src/program/movie/MovieFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "MovieFileInputs.h"

#include <string>
#include <stdint.h>

class MovieFile {
public:
Expand Down
1 change: 1 addition & 0 deletions src/program/movie/MovieFileEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "Context.h"
#include <vector>
#include <set>
#include <stdint.h>

class MovieFileEditor {
public:
Expand Down
1 change: 1 addition & 0 deletions src/program/movie/MovieFileHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include "Context.h"
#include <string>
#include <stdint.h>

class MovieFileHeader {
public:
Expand Down
1 change: 1 addition & 0 deletions src/program/movie/MovieFileInputs.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <string>
#include <vector>
#include <regex>
#include <stdint.h>

class MovieFileInputs {
public:
Expand Down
1 change: 1 addition & 0 deletions src/program/ramsearch/TypeIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#define LIBTAS_TYPEINDEX_H_INCLUDED

#include "RamWatch.h"
#include <stdint.h>

/* This looks aaawwwful */
template <typename T> static inline int type_index() {return 0;}
Expand Down
1 change: 1 addition & 0 deletions src/program/ui/InputEditorModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <QAbstractTableModel>
#include <vector>
#include <array>
#include <stdint.h>

#include "../Context.h"
#include "../movie/MovieFile.h"
Expand Down
2 changes: 2 additions & 0 deletions src/program/ui/InputEditorView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <QHeaderView>
#include <QScrollBar>

#include <stdint.h>

#include "InputEditorView.h"
#include "MainWindow.h"
#include "qtutils.h"
Expand Down
1 change: 1 addition & 0 deletions src/program/ui/PointerScanModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
// #include <pair>
#include <memory>
#include <sys/types.h>
#include <stdint.h>

#include "../Context.h"
#include "../ramsearch/MemSection.h"
Expand Down
2 changes: 2 additions & 0 deletions src/program/ui/RamWatchEditWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include <QSpinBox>
#include <QMessageBox>

#include <stdint.h>

#include "RamWatchEditWindow.h"
#include "../ramsearch/RamWatchDetailed.h"

Expand Down
2 changes: 2 additions & 0 deletions src/program/ui/RamWatchModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include "../ramsearch/IRamWatchDetailed.h"
#include "../ramsearch/RamWatchDetailed.h"

#include <stdint.h>

RamWatchModel::RamWatchModel(QObject *parent) : QAbstractTableModel(parent) {}

int RamWatchModel::rowCount(const QModelIndex & /*parent*/) const
Expand Down
1 change: 1 addition & 0 deletions src/program/ui/TimeTraceModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
// #include <pair>
#include <memory>
#include <sys/types.h>
#include <stdint.h>

#include "../Context.h"
// #include "../ramsearch/MemSection.h"
Expand Down

0 comments on commit bde2a0d

Please sign in to comment.