Skip to content

Commit

Permalink
fix: remove unsupported attributes for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Azq2 committed Jan 8, 2025
1 parent 9951c61 commit fc71958
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,5 @@ jobs:
- uses: softprops/action-gh-release@v1
with:
token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: |
build/Release/ptr89.exe
5 changes: 5 additions & 0 deletions lib/src/Pattern.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,13 @@ class Pattern {
m_debugLevel--;
}

#if defined(_MSC_VER)
static void debug(const char *format, ...);
static void _debug(const char *format, ...);
#else
static void debug(const char *format, ...) __attribute__((format(printf, 1, 2)));
static void _debug(const char *format, ...) __attribute__((format(printf, 1, 2)));
#endif
private:
static DebugHandlerFunc m_debugHandler;
static int m_debugLevel;
Expand Down

0 comments on commit fc71958

Please sign in to comment.