Skip to content

Commit

Permalink
small fixes to examples and build
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Dec 16, 2024
1 parent ced0d49 commit 0d2fc20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions build/embed-path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ command -v xxd > /dev/null || {
exit 1
}

>&2 echo "parent: $parent"
>&2 echo "name: $name"
>&2 echo "pathname: $pathname"
>&2 echo "dest: $dst"
# >&2 echo "parent: $parent"
# >&2 echo "name: $name"
# >&2 echo "pathname: $pathname"
# >&2 echo "dest: $dst"

rm -f ${name}.tar.gz
prevpwd=`pwd`
cd ${parent}
[ "$pathname" != "$name" ] && cp -ra "$pathname" "$name"
tar --format ustar -czf ${prevpwd}/${name}.tar.gz "$name"
tar --format ustar -cvzf ${prevpwd}/${name}.tar.gz "$name"
[ "$pathname" != "$name" ] && rm -rf "$name"
cd -

Expand Down
2 changes: 1 addition & 1 deletion examples/nuklear.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// CJIT library loading for SDL2+OpenGL
#pragma comment(lib, "SDL2")
#ifdef WINDOWS
#ifdef _WIN32
#pragma comment(lib, "opengl32")
#elif LINUX
#pragma comment(lib, "OpenGL")
Expand Down
2 changes: 1 addition & 1 deletion examples/opengl.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#pragma comment(lib, "SDL2")

#ifdef WINDOWS
#ifdef _WIN32
#pragma comment(lib, "opengl32")
#elif LINUX
#pragma comment(lib, "OpenGL")
Expand Down

0 comments on commit 0d2fc20

Please sign in to comment.