Skip to content

Commit

Permalink
Add strptime.c and a conditional include of it to jdate.c
Browse files Browse the repository at this point in the history
The strptime function is not available on windows in msys2
environment.
  • Loading branch information
masoudd committed Jun 14, 2024
1 parent 4a9a37a commit 06d4d05
Show file tree
Hide file tree
Showing 2 changed files with 604 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sources/src/jdate.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
#include "../libjalali/jtime.h"
#include "jdate.h"

#ifndef HAVE_STRPTIME
#include "strptime.c"
#endif
extern char* optarg;

/*
Expand Down
Loading

0 comments on commit 06d4d05

Please sign in to comment.