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

Side by Side Diff: src/common/sysdefs.h

Issue 12568011: Update XZ Utils to 5.0.4 (third_party) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/xz/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 /////////////////////////////////////////////////////////////////////////////// 1 ///////////////////////////////////////////////////////////////////////////////
2 // 2 //
3 /// \file sysdefs.h 3 /// \file sysdefs.h
4 /// \brief Common includes, definitions, system-specific things etc. 4 /// \brief Common includes, definitions, system-specific things etc.
5 /// 5 ///
6 /// This file is used also by the lzma command line tool, that's why this 6 /// This file is used also by the lzma command line tool, that's why this
7 /// file is separate from common.h. 7 /// file is separate from common.h.
8 // 8 //
9 // Author: Lasse Collin 9 // Author: Lasse Collin
10 // 10 //
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 # define PRIx64 "lx" 96 # define PRIx64 "lx"
97 # endif 97 # endif
98 # ifndef PRIX64 98 # ifndef PRIX64
99 # define PRIX64 "lX" 99 # define PRIX64 "lX"
100 # endif 100 # endif
101 #endif 101 #endif
102 #ifndef UINT64_MAX 102 #ifndef UINT64_MAX
103 # define UINT64_MAX UINT64_C(18446744073709551615) 103 # define UINT64_MAX UINT64_C(18446744073709551615)
104 #endif 104 #endif
105 105
106 // Interix has broken header files, which typedef size_t to unsigned long, 106 // Incorrect(?) SIZE_MAX:
107 // but a few lines later define SIZE_MAX to INT32_MAX. 107 // - Interix headers typedef size_t to unsigned long,
108 #ifdef __INTERIX 108 // but a few lines later define SIZE_MAX to INT32_MAX.
109 // - SCO OpenServer (x86) headers typedef size_t to unsigned int
110 // but define SIZE_MAX to INT32_MAX.
111 #if defined(__INTERIX) || defined(_SCO_DS)
109 # undef SIZE_MAX 112 # undef SIZE_MAX
110 #endif 113 #endif
111 114
112 // The code currently assumes that size_t is either 32-bit or 64-bit. 115 // The code currently assumes that size_t is either 32-bit or 64-bit.
113 #ifndef SIZE_MAX 116 #ifndef SIZE_MAX
114 # if SIZEOF_SIZE_T == 4 117 # if SIZEOF_SIZE_T == 4
115 # define SIZE_MAX UINT32_MAX 118 # define SIZE_MAX UINT32_MAX
116 # elif SIZEOF_SIZE_T == 8 119 # elif SIZEOF_SIZE_T == 8
117 # define SIZE_MAX UINT64_MAX 120 # define SIZE_MAX UINT64_MAX
118 # else 121 # else
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 # define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) 183 # define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
181 #endif 184 #endif
182 185
183 #if (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) || __GNUC__ > 4 186 #if (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) || __GNUC__ > 4
184 # define lzma_attr_alloc_size(x) __attribute__((__alloc_size__(x))) 187 # define lzma_attr_alloc_size(x) __attribute__((__alloc_size__(x)))
185 #else 188 #else
186 # define lzma_attr_alloc_size(x) 189 # define lzma_attr_alloc_size(x)
187 #endif 190 #endif
188 191
189 #endif 192 #endif
OLDNEW
« README.chromium ('K') | « po/pl.po ('k') | src/common/tuklib_open_stdxxx.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698