Skip to content

Commit dd8a6fb

Browse files
committed
Fix the #includes in C examples
1 parent d302e9a commit dd8a6fb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/c_canvas_glfw_minimal/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUST_TARGET_DIR?=../../target
55
RUST_SRC_DIR?=../../c
66
RUSTFLAGS?=
77

8-
CFLAGS?=-Wall -g -I../../c/build/include
8+
CFLAGS?=-Wall -g -I../../c/build/include/pathfinder_c
99
LIBS?=-lpathfinder_c -lglfw
1010
MKDIR?=mkdir -p
1111
RM?=rm

examples/c_canvas_glfw_minimal/c_canvas_glfw_minimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
#include <GLFW/glfw3.h>
12-
#include <pathfinder/pathfinder.h>
12+
#include <pathfinder_c.h>
1313
#include <stdarg.h>
1414
#include <stdbool.h>
1515
#include <stdio.h>

examples/c_canvas_minimal/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUST_TARGET_DIR?=../../target
55
RUST_SRC_DIR?=../../c
66
RUSTFLAGS?=-C target-cpu=native
77

8-
CFLAGS?=-Wall -g -I../../c/build/include
8+
CFLAGS?=-Wall -g -I../../c/build/include/pathfinder_c
99
LIBS?=-lpathfinder_c
1010
MKDIR?=mkdir -p
1111
RM?=rm

examples/c_canvas_minimal/c_canvas_minimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <SDL2/SDL.h>
1212
#include <SDL2/SDL_opengl.h>
13-
#include <pathfinder/pathfinder.h>
13+
#include <pathfinder_c.h>
1414
#include <stdarg.h>
1515
#include <stdbool.h>
1616
#include <stdio.h>

0 commit comments

Comments
 (0)