Skip to content

Commit

Permalink
add missing definition
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Aug 11, 2024
1 parent b66dc93 commit 00efdf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ccode/value.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include <stdbool.h>
#include <stdio.h>

#define _POSIX_C_SOURCE

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

0 comments on commit 00efdf5

Please sign in to comment.