change header path

main
Henri Vasserman 2024-10-05 22:27:41 +03:00
parent f6a64f39b4
commit 3e71b3d5c5
7 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
build/ build/
*.swp *.swp
.cache/

View File

@ -26,4 +26,4 @@ add_executable(xormod
"xormod.c" "xormod.c"
) )
target_link_libraries(xormod SDL2::SDL2) target_link_libraries(xormod SDL2)

View File

@ -1,6 +1,6 @@
#include "field.h" #include "field.h"
#include <SDL.h> #include <SDL2/SDL.h>
#define SWAP(a, b) ({ \ #define SWAP(a, b) ({ \
__typeof(a) tmp = (a); \ __typeof(a) tmp = (a); \

2
font.c
View File

@ -1,6 +1,6 @@
#include "EGA8x8.h" #include "EGA8x8.h"
#include <SDL.h> #include <SDL2/SDL.h>
SDL_Texture *load_font(SDL_Renderer *renderer) { SDL_Texture *load_font(SDL_Renderer *renderer) {
SDL_Surface *s = SDL_LoadBMP_RW(SDL_RWFromConstMem(font_data, font_data_len), 1); SDL_Surface *s = SDL_LoadBMP_RW(SDL_RWFromConstMem(font_data, font_data_len), 1);

2
font.h
View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <SDL.h> #include <SDL2/SDL.h>
#define RC(r, c) (c)*font_w, (r)*font_h #define RC(r, c) (c)*font_w, (r)*font_h

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <stdint.h> #include <stdint.h>
#include <SDL.h> #include <SDL2/SDL.h>
typedef struct { typedef struct {
int x1; int x1;

View File

@ -6,7 +6,7 @@
#include "types.h" #include "types.h"
#include <stdio.h> #include <stdio.h>
#include <SDL.h> #include <SDL2/SDL.h>
int main() { int main() {