Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile on windows msys2 #10

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sources/libjalali/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ includedir= $(prefix)/include/jalali
include_HEADERS = jalali.h jtime.h jconfig.h
INCLUDES = -I. -I@includedir@
LIBS = @LIBS@ $(THREAD_LIBS)
AM_CFLAGS = @CFLAGS@ -D_REENTRANT -W -Wall -O2
AM_CFLAGS = @CFLAGS@ -D_REENTRANT -W -Wall -O2 -D_POSIX_C_SOURCE
2 changes: 1 addition & 1 deletion sources/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ bin_PROGRAMS = jcal jdate
INCLUDES = -I. -I.. -I../libjalali -I@includedir@

AM_CFLAGS = @CFLAGS@ -fno-inline -D_REENTRANT -Wall\
-O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE

jcal_SOURCES = jcal.c
jdate_SOURCES = jdate.c
Expand Down
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