diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-13 10:59:55 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-13 10:59:55 +0000 |
commit | 86b474d4dbeb9d4038124c9f2a793f910672465c (patch) | |
tree | 048af7cfd008841940072c5945a1ab29d5edd2fd /lpsolve-5.5.2.0.defines.patch | |
parent | e281b1e9111a7d7a14ddb4dd7f36767a7de2ffcb (diff) |
automatic import of lpsolveopeneuler23.03
Diffstat (limited to 'lpsolve-5.5.2.0.defines.patch')
-rw-r--r-- | lpsolve-5.5.2.0.defines.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lpsolve-5.5.2.0.defines.patch b/lpsolve-5.5.2.0.defines.patch new file mode 100644 index 0000000..a325c13 --- /dev/null +++ b/lpsolve-5.5.2.0.defines.patch @@ -0,0 +1,22 @@ +--- lp_solve_5.5/lpsolve55/ccc ++++ lp_solve_5.5/lpsolve55/ccc +@@ -18,7 +18,7 @@ + echo '#include <stdio.h>'>>/tmp/isnan.c + echo '#include <stdlib.h>'>>/tmp/isnan.c + echo '#include <math.h>'>>/tmp/isnan.c +-echo 'main(){isnan(0);}'>>/tmp/isnan.c ++echo 'main(){isnan(0.0);}'>>/tmp/isnan.c + $c /tmp/isnan.c -o /tmp/isnan $math >/dev/null 2>&1 + if [ $? = 0 ] + then NOISNAN= +--- lp_solve_5.5/lp_solve/ccc ++++ lp_solve_5.5/lp_solve/ccc +@@ -20,7 +20,7 @@ + echo '#include <stdio.h>'>>/tmp/isnan.c + echo '#include <stdlib.h>'>>/tmp/isnan.c + echo '#include <math.h>'>>/tmp/isnan.c +-echo 'main(){isnan(0);}'>>/tmp/isnan.c ++echo 'main(){isnan(0.0);}'>>/tmp/isnan.c + $c /tmp/isnan.c -o /tmp/isnan $math >/dev/null 2>&1 + if [ $? = 0 ] + then NOISNAN= |