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

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

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
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 /* Don't change symbol visibility if used as a static link libraray */
69 #if !defined(XML_STATIC) && !defined(XMLIMPORT) && defined(__GNUC__) && (__GNUC_ _ >= 4)
70 #define XMLIMPORT __attribute__ ((visibility ("default")))
71 #endif
68 72
69 /* If we didn't define it above, define it away: */ 73 /* If we didn't define it above, define it away: */
70 #ifndef XMLIMPORT 74 #ifndef XMLIMPORT
71 #define XMLIMPORT 75 #define XMLIMPORT
72 #endif 76 #endif
73 77
78 #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96 ))
79 #define XML_ATTR_MALLOC __attribute__((__malloc__))
80 #else
81 #define XML_ATTR_MALLOC
82 #endif
83
84 #if defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
85 #define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
86 #else
87 #define XML_ATTR_ALLOC_SIZE(x)
88 #endif
74 89
75 #define XMLPARSEAPI(type) XMLIMPORT type XMLCALL 90 #define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
76 91
77 #ifdef __cplusplus 92 #ifdef __cplusplus
78 extern "C" { 93 extern "C" {
79 #endif 94 #endif
80 95
81 #ifdef XML_UNICODE_WCHAR_T 96 #ifdef XML_UNICODE_WCHAR_T
82 #define XML_UNICODE 97 #define XML_UNICODE
83 #endif 98 #endif
(...skipping 22 matching lines...) Expand all
106 #else 121 #else
107 typedef long XML_Index; 122 typedef long XML_Index;
108 typedef unsigned long XML_Size; 123 typedef unsigned long XML_Size;
109 #endif /* XML_LARGE_SIZE */ 124 #endif /* XML_LARGE_SIZE */
110 125
111 #ifdef __cplusplus 126 #ifdef __cplusplus
112 } 127 }
113 #endif 128 #endif
114 129
115 #endif /* not Expat_External_INCLUDED */ 130 #endif /* not Expat_External_INCLUDED */
OLDNEW
« no previous file with comments | « third_party/expat/files/lib/expat_config.h ('k') | third_party/expat/files/lib/expat_external.h.original » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698