diff --git a/build.sh b/build.sh index 3afb366..954beac 100755 --- a/build.sh +++ b/build.sh @@ -9,5 +9,5 @@ c++ -shared -o librt_weekend.so librt_weekend.o rm librt_weekend.o # Platform layer host application -c++ -Wall -std=c++11 -g ../code/platform.cpp -o platform `sdl2-config --libs --cflags` +c++ -Wall -std=c++11 -g ../code/sdl_platform.cpp -o sdl_platform `sdl2-config --libs --cflags` popd diff --git a/code/sdl_platform.cpp b/code/sdl_platform.cpp index 1e1f390..1fdc0fa 100644 --- a/code/sdl_platform.cpp +++ b/code/sdl_platform.cpp @@ -8,7 +8,7 @@ #include #include -#include "platform.h" +#include "sdl_platform.h" const char *WindowTitle = "Ray Tracing in a Weekend"; diff --git a/code/sdl_platform.h b/code/sdl_platform.h index 666bac1..ec4b09f 100644 --- a/code/sdl_platform.h +++ b/code/sdl_platform.h @@ -1,5 +1,5 @@ -#ifndef PLATFORM_H -#define PLATFORM_H +#ifndef SDL_PLATFORM_H +#define SDL_PLATFORM_H typedef void plugin_update_and_render(plugin_offscreen_buffer *Buffer); diff --git a/run.sh b/run.sh index 169270b..ce19e9d 100755 --- a/run.sh +++ b/run.sh @@ -1,4 +1,4 @@ #!/bin/sh pushd build -./platform +./sdl_platform popd