forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This updates glpk to 4.65.
- Loading branch information
Showing
3 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- glpk-4.65/src/env/stdc.c.orig 2018-04-29 17:40:03.665385500 -0400 | ||
+++ glpk-4.65/src/env/stdc.c 2018-04-29 17:40:08.229017800 -0400 | ||
@@ -49,7 +49,7 @@ | ||
|
||
/* MS Windows version *************************************************/ | ||
|
||
-#elif defined(__WOE__) | ||
+#elif defined(_WIN32) | ||
|
||
#include "stdc.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
diff -Naur glpk-4.55.orig/src/env/time.c glpk-4.55/src/env/time.c | ||
--- glpk-4.55.orig/src/env/time.c 2015-03-27 02:15:07.371110800 +0100 | ||
+++ glpk-4.55/src/env/time.c 2015-03-27 17:24:58.926888700 +0100 | ||
@@ -54,10 +54,12 @@ | ||
diff -Naur glpk-4.65.orig/src/env/time.c glpk-4.65/src/env/time.c | ||
--- glpk-4.65.orig/src/env/time.c 2018-04-29 17:19:55.861485500 -0400 | ||
+++ glpk-4.65/src/env/time.c 2018-04-29 17:22:26.023473000 -0400 | ||
@@ -55,13 +55,15 @@ | ||
double glp_time(void) | ||
{ struct timeval tv; | ||
struct tm *tm; | ||
+ time_t sec; | ||
int j; | ||
double t; | ||
+ sec = tv.tv_sec; | ||
gettimeofday(&tv, NULL); | ||
#if 0 /* 29/I-2017 */ | ||
- tm = gmtime(&tv.tv_sec); | ||
+ sec = tv.tv_sec; | ||
+ tm = gmtime(&sec); | ||
#else | ||
- tm = xgmtime(&tv.tv_sec); | ||
+ tm = xgmtime(&sec); | ||
#endif | ||
j = jday(tm->tm_mday, tm->tm_mon + 1, 1900 + tm->tm_year); | ||
xassert(j >= 0); | ||
t = ((((double)(j - EPOCH) * 24.0 + (double)tm->tm_hour) * 60.0 + |