Mercurial > mxe-octave
annotate src/pstoedit-3-nosecapi.patch @ 6161:8fcac4d6d983 release
of-queueing: Fix syntax error with Octave 7 (bug #62314).
* src/of-queueing-1-octave7.patch: Add new file.
* dist-files.mk: Include new patch.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 14 Apr 2022 19:27:13 +0200 |
parents | 4ebe3efd8e98 |
children |
rev | line source |
---|---|
3667 | 1 diff -ur pstoedit-3.62.orig/src/lexyy.cpp pstoedit-3.62/src/lexyy.cpp |
2 --- pstoedit-3.62.orig/src/lexyy.cpp 2014-07-25 09:19:14 -0400 | |
3 +++ pstoedit-3.62/src/lexyy.cpp 2014-07-25 09:20:00 -0400 | |
4 @@ -14,6 +14,7 @@ | |
5 #endif | |
6 | |
7 /* First, we deal with platform-specific or compiler-specific issues. */ | |
8 +#include "cppcomp.h" | |
9 | |
10 /* begin standard C headers. */ | |
11 #include <stdio.h> | |
3974 | 12 diff -ur pstoedit-3.70.orig/src/fillpoly.cpp pstoedit-3.70/src/fillpoly.cpp |
13 --- pstoedit-3.70.orig/src/fillpoly.cpp 2015-06-13 07:21:31.042850400 -0400 | |
14 +++ pstoedit-3.70/src/fillpoly.cpp 2015-06-13 07:28:44.826540800 -0400 | |
15 @@ -1,6 +1,6 @@ | |
16 /* this file is taken from the hp2xx project (http://www.gnu.org/software/hp2xx/hp2xx.html) | |
17 and slightly adapted to fit into pstoedit s framework */ | |
18 - | |
19 +#include "cppcomp.h" | |
20 #include <stdio.h> | |
21 #include <stdlib.h> | |
22 #include <string.h> | |
23 diff -ur pstoedit-3.70.orig/src/drvwmf.cpp pstoedit-3.70/src/drvwmf.cpp | |
24 --- pstoedit-3.70.orig/src/drvwmf.cpp 2015-06-13 08:02:48.035020200 -0400 | |
25 +++ pstoedit-3.70/src/drvwmf.cpp 2015-06-13 08:03:33.555528400 -0400 | |
26 @@ -22,6 +22,8 @@ | |
27 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
28 | |
29 */ | |
30 +#include "cppcomp.h" | |
31 + | |
32 #include "drvwmf.h" | |
33 | |
34 #include I_string_h | |
5438
4ebe3efd8e98
* src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api
John Donoghue <john.donoghue@ieee.org>
parents:
3974
diff
changeset
|
35 diff -ur pstoedit-3.75.orig/src/cppcomp.h pstoedit-3.75/src/cppcomp.h |
4ebe3efd8e98
* src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api
John Donoghue <john.donoghue@ieee.org>
parents:
3974
diff
changeset
|
36 --- pstoedit-3.75.orig/src/cppcomp.h 2020-05-29 11:11:05.064392865 -0400 |
4ebe3efd8e98
* src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api
John Donoghue <john.donoghue@ieee.org>
parents:
3974
diff
changeset
|
37 +++ pstoedit-3.75/src/cppcomp.h 2020-05-29 11:20:09.056541850 -0400 |
4ebe3efd8e98
* src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api
John Donoghue <john.donoghue@ieee.org>
parents:
3974
diff
changeset
|
38 @@ -230,7 +230,7 @@ |
4ebe3efd8e98
* src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api
John Donoghue <john.donoghue@ieee.org>
parents:
3974
diff
changeset
|
39 |
4ebe3efd8e98
* src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api
John Donoghue <john.donoghue@ieee.org>
parents:
3974
diff
changeset
|
40 |
4ebe3efd8e98
* src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api
John Donoghue <john.donoghue@ieee.org>
parents:
3974
diff
changeset
|
41 //{ |
4ebe3efd8e98
* src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api
John Donoghue <john.donoghue@ieee.org>
parents:
3974
diff
changeset
|
42 -#if defined(_MSC_VER) && (_MSC_VER >= 1400) |
4ebe3efd8e98
* src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api
John Donoghue <john.donoghue@ieee.org>
parents:
3974
diff
changeset
|
43 +#if (defined(_MSC_VER) && (_MSC_VER >= 1400)) || defined(__MINGW32__) |
4ebe3efd8e98
* src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api
John Donoghue <john.donoghue@ieee.org>
parents:
3974
diff
changeset
|
44 // for MS VS 8 (== cl version 14) we can use the new secure *_s string functions |
4ebe3efd8e98
* src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api
John Donoghue <john.donoghue@ieee.org>
parents:
3974
diff
changeset
|
45 // for other systems we have to "emulate" them |
4ebe3efd8e98
* src/pstoedit-3-nosecapi.patch: update patch as mingw does support secure api
John Donoghue <john.donoghue@ieee.org>
parents:
3974
diff
changeset
|
46 #define TARGETWITHLEN(str,len) str,len |