diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-03-08 10:41:26 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-03-08 10:41:26 +0100 |
commit | cf1effe02d99d74db684ff324a46fa32cf186417 (patch) | |
tree | e2da0df9d817042353b53504d501176169a5c79c /src/ppusim | |
parent | d5a24b3708bf71504630baf2c88a1660e4732c3c (diff) |
fix windows build system and add vscode configuration files
Diffstat (limited to 'src/ppusim')
-rw-r--r-- | src/ppusim/work.c | 5 | ||||
-rw-r--r-- | src/ppusim/work.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ppusim/work.c b/src/ppusim/work.c index fcb80ca..3b9cee6 100644 --- a/src/ppusim/work.c +++ b/src/ppusim/work.c @@ -11,6 +11,10 @@ pthread_t* g_hh_ppusim_threads; unsigned g_hh_ppusim_core_count; hh_s_ppusim_screen g_hh_ppusim_screen; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" +#pragma GCC diagnostic ignored "-Wpointer-to-int-cast" + void* hh_ppusim_draw_thread(void* arg) { unsigned core = (unsigned long) arg; for (unsigned y = core; y < HH_PPU_SCREEN_HEIGHT; y += g_hh_ppusim_core_count) @@ -38,3 +42,4 @@ void hh_ppusim_draw_frame(SDL_Renderer* renderer) { } } +#pragma GCC diagnostic pop diff --git a/src/ppusim/work.h b/src/ppusim/work.h index 6f72357..3a165ff 100644 --- a/src/ppusim/work.h +++ b/src/ppusim/work.h @@ -1,6 +1,7 @@ #pragma once #include <SDL2/SDL.h> +#include <pthread.h> #include "ppu/consts.h" |