Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
squid233 committed Feb 23, 2024
1 parent 477c08c commit c80dbee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- uses: actions/upload-artifact@v3
name: Upload Artifacts
with:
name: Artifacts Linux ${{ matrix.ARCH }}
name: linux-${{ matrix.ARCH }}
path: ${{github.workspace}}/build/libstb.so
macos:
name: macOS
Expand All @@ -83,7 +83,7 @@ jobs:
- uses: actions/upload-artifact@v3
name: Upload Artifacts
with:
name: Artifacts macOS ${{ matrix.ARCH }}
name: macos-${{ matrix.ARCH }}
path: ${{github.workspace}}/build/libstb.dylib
windows:
name: Windows
Expand All @@ -105,5 +105,5 @@ jobs:
- uses: actions/upload-artifact@v3
name: Upload Artifacts
with:
name: Artifacts Windows ${{ matrix.ARCH }}
name: windows-${{ matrix.ARCH }}
path: ${{github.workspace}}/build/Release/stb.dll
23 changes: 0 additions & 23 deletions stb.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,3 @@
#define STB_TRUETYPE_IMPLEMENTATION
#include "stb_truetype.h"
#include "stb_vorbis.c"

#ifndef STB_C_DLLEXPORT
#ifdef _MSC_VER
#define STB_C_DLLEXPORT extern __declspec(dllexport)
#else
#define STB_C_DLLEXPORT extern
#endif
#endif

#ifdef __cplusplus
extern "C" {
#endif

STB_C_DLLEXPORT int stbi_get_write_tga_with_rle() { return stbi_write_tga_with_rle; }
STB_C_DLLEXPORT int stbi_get_write_png_compression_level() { return stbi_write_png_compression_level; }
STB_C_DLLEXPORT int stbi_get_write_force_png_filter() { return stbi_write_force_png_filter; }
STB_C_DLLEXPORT void stbi_set_write_tga_with_rle(int v) { stbi_write_tga_with_rle = v; }
STB_C_DLLEXPORT void stbi_set_write_png_compression_level(int v) { stbi_write_png_compression_level = v; }
STB_C_DLLEXPORT void stbi_set_write_force_png_filter(int v) { stbi_write_force_png_filter = v; }

#ifdef __cplusplus
}
#endif

0 comments on commit c80dbee

Please sign in to comment.