Skip to content

Commit

Permalink
Add missing include in asardll.c
Browse files Browse the repository at this point in the history
This commit adds an #include <stdlib.h> in asardll.c
This is because otherwise malloc and free functions are not defined
anywhere, causing warnings (at least in msvc).

e.g.
warning C4013: 'malloc' undefined; assuming extern returning int
warning C4013: 'free' undefined; assuming extern returning int
  • Loading branch information
Atari2 committed Mar 11, 2024
1 parent f62c728 commit 5c2a5e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/asar-dll-bindings/c/asardll.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#if defined(_WIN32)
# if defined(_MSC_VER)
Expand Down

0 comments on commit 5c2a5e4

Please sign in to comment.