Skip to content

Commit

Permalink
fix missing function ansi C
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed May 26, 2024
1 parent fdaf76b commit c52c691
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ccode/archive-extract.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ extern void error_add(char* message);

extern char* build_string(char* format, ...);

#ifdef __STRICT_ANSI__
#define strdup(A) strcpy(calloc(strlen(A) + 1, sizeof(char)), A);
#endif


#if DEBUG
extern void debug(char* message);
#define fdebug(A, ...) \
Expand Down

0 comments on commit c52c691

Please sign in to comment.