Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(994)

Side by Side Diff: third_party/expat/files/lib/expat_external.h.original

Issue 2761253002: Update expat to 2.2.0 to fix CVE vulnerability. (Closed)
Patch Set: update README.chromium Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/expat/files/lib/expat_external.h ('k') | third_party/expat/files/lib/internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd 1 /* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
2 See the file COPYING for copying permission. 2 See the file COPYING for copying permission.
3 */ 3 */
4 4
5 #ifndef Expat_External_INCLUDED 5 #ifndef Expat_External_INCLUDED
6 #define Expat_External_INCLUDED 1 6 #define Expat_External_INCLUDED 1
7 7
8 /* External API definitions */ 8 /* External API definitions */
9 9
10 #if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__) 10 #if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 #ifndef XML_BUILDING_EXPAT 58 #ifndef XML_BUILDING_EXPAT
59 /* using Expat from an application */ 59 /* using Expat from an application */
60 60
61 #ifdef XML_USE_MSC_EXTENSIONS 61 #ifdef XML_USE_MSC_EXTENSIONS
62 #define XMLIMPORT __declspec(dllimport) 62 #define XMLIMPORT __declspec(dllimport)
63 #endif 63 #endif
64 64
65 #endif 65 #endif
66 #endif /* not defined XML_STATIC */ 66 #endif /* not defined XML_STATIC */
67 67
68 #if !defined(XMLIMPORT) && defined(__GNUC__) && (__GNUC__ >= 4)
69 #define XMLIMPORT __attribute__ ((visibility ("default")))
70 #endif
68 71
69 /* If we didn't define it above, define it away: */ 72 /* If we didn't define it above, define it away: */
70 #ifndef XMLIMPORT 73 #ifndef XMLIMPORT
71 #define XMLIMPORT 74 #define XMLIMPORT
72 #endif 75 #endif
73 76
77 #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96 ))
78 #define XML_ATTR_MALLOC __attribute__((__malloc__))
79 #else
80 #define XML_ATTR_MALLOC
81 #endif
82
83 #if defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
84 #define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
85 #else
86 #define XML_ATTR_ALLOC_SIZE(x)
87 #endif
74 88
75 #define XMLPARSEAPI(type) XMLIMPORT type XMLCALL 89 #define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
76 90
77 #ifdef __cplusplus 91 #ifdef __cplusplus
78 extern "C" { 92 extern "C" {
79 #endif 93 #endif
80 94
81 #ifdef XML_UNICODE_WCHAR_T 95 #ifdef XML_UNICODE_WCHAR_T
82 #define XML_UNICODE 96 #define XML_UNICODE
83 #endif 97 #endif
(...skipping 22 matching lines...) Expand all
106 #else 120 #else
107 typedef long XML_Index; 121 typedef long XML_Index;
108 typedef unsigned long XML_Size; 122 typedef unsigned long XML_Size;
109 #endif /* XML_LARGE_SIZE */ 123 #endif /* XML_LARGE_SIZE */
110 124
111 #ifdef __cplusplus 125 #ifdef __cplusplus
112 } 126 }
113 #endif 127 #endif
114 128
115 #endif /* not Expat_External_INCLUDED */ 129 #endif /* not Expat_External_INCLUDED */
OLDNEW
« no previous file with comments | « third_party/expat/files/lib/expat_external.h ('k') | third_party/expat/files/lib/internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698