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

Side by Side Diff: third_party/libxml/win32/config.h

Issue 1836853002: Avoid illegal definition of snprintf in VS 2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 8 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/libxml/README.chromium ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef __LIBXML_WIN32_CONFIG__ 1 #ifndef __LIBXML_WIN32_CONFIG__
2 #define __LIBXML_WIN32_CONFIG__ 2 #define __LIBXML_WIN32_CONFIG__
3 3
4 #define HAVE_CTYPE_H 4 #define HAVE_CTYPE_H
5 #define HAVE_STDARG_H 5 #define HAVE_STDARG_H
6 #define HAVE_MALLOC_H 6 #define HAVE_MALLOC_H
7 #define HAVE_ERRNO_H 7 #define HAVE_ERRNO_H
8 #define HAVE_STDINT_H 8 #define HAVE_STDINT_H
9 9
10 #if defined(_WIN32_WCE) 10 #if defined(_WIN32_WCE)
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 } else { 90 } else {
91 return 0; 91 return 0;
92 } 92 }
93 } 93 }
94 #endif 94 #endif
95 #endif /* _MSC_VER */ 95 #endif /* _MSC_VER */
96 96
97 #if defined(_MSC_VER) 97 #if defined(_MSC_VER)
98 #define mkdir(p,m) _mkdir(p) 98 #define mkdir(p,m) _mkdir(p)
99 #if _MSC_VER < 1900
99 #define snprintf _snprintf 100 #define snprintf _snprintf
101 #endif
100 #if _MSC_VER < 1500 102 #if _MSC_VER < 1500
101 #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a) 103 #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
102 #endif 104 #endif
103 #elif defined(__MINGW32__) 105 #elif defined(__MINGW32__)
104 #define mkdir(p,m) _mkdir(p) 106 #define mkdir(p,m) _mkdir(p)
105 #endif 107 #endif
106 108
107 /* Threading API to use should be specified here for compatibility reasons. 109 /* Threading API to use should be specified here for compatibility reasons.
108 This is however best specified on the compiler's command-line. */ 110 This is however best specified on the compiler's command-line. */
109 #if defined(LIBXML_THREAD_ENABLED) 111 #if defined(LIBXML_THREAD_ENABLED)
110 #if !defined(HAVE_PTHREAD_H) && !defined(HAVE_WIN32_THREADS) && !defined(_WIN32_ WCE) 112 #if !defined(HAVE_PTHREAD_H) && !defined(HAVE_WIN32_THREADS) && !defined(_WIN32_ WCE)
111 #define HAVE_WIN32_THREADS 113 #define HAVE_WIN32_THREADS
112 #endif 114 #endif
113 #endif 115 #endif
114 116
115 /* Some third-party libraries far from our control assume the following 117 /* Some third-party libraries far from our control assume the following
116 is defined, which it is not if we don't include windows.h. */ 118 is defined, which it is not if we don't include windows.h. */
117 #if !defined(FALSE) 119 #if !defined(FALSE)
118 #define FALSE 0 120 #define FALSE 0
119 #endif 121 #endif
120 #if !defined(TRUE) 122 #if !defined(TRUE)
121 #define TRUE (!(FALSE)) 123 #define TRUE (!(FALSE))
122 #endif 124 #endif
123 125
124 #endif /* __LIBXML_WIN32_CONFIG__ */ 126 #endif /* __LIBXML_WIN32_CONFIG__ */
125 127
OLDNEW
« no previous file with comments | « third_party/libxml/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698