summaryrefslogtreecommitdiffstats
path: root/Utilities/cmliblzma/liblzma/rangecoder
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-08-06 13:45:06 (GMT)
committerBrad King <brad.king@kitware.com>2018-08-06 13:47:42 (GMT)
commit0a3912112d11514ba1652423e21a767507ce75fb (patch)
tree91c973b47790ebeab1ceb91876aadb4f08c8557b /Utilities/cmliblzma/liblzma/rangecoder
parentd7a1bcd2e67e27d8897c100f14744547ef639d64 (diff)
downloadCMake-0a3912112d11514ba1652423e21a767507ce75fb.zip
CMake-0a3912112d11514ba1652423e21a767507ce75fb.tar.gz
CMake-0a3912112d11514ba1652423e21a767507ce75fb.tar.bz2
liblzma: Revert "Avoid defining a 'restrict' macro"
Revert commit v3.1.0-rc1~255^2~2 (liblzma: Avoid defining a 'restrict' macro, 2014-07-24). We will use another approach to deal with the 'restrict' keyword.
Diffstat (limited to 'Utilities/cmliblzma/liblzma/rangecoder')
-rw-r--r--Utilities/cmliblzma/liblzma/rangecoder/range_decoder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmliblzma/liblzma/rangecoder/range_decoder.h b/Utilities/cmliblzma/liblzma/rangecoder/range_decoder.h
index 199e7b5..fb96180 100644
--- a/Utilities/cmliblzma/liblzma/rangecoder/range_decoder.h
+++ b/Utilities/cmliblzma/liblzma/rangecoder/range_decoder.h
@@ -26,8 +26,8 @@ typedef struct {
/// Reads the first five bytes to initialize the range decoder.
static inline bool
-rc_read_init(lzma_range_decoder *rc, const uint8_t *LZMA_RESTRICT in,
- size_t *LZMA_RESTRICT in_pos, size_t in_size)
+rc_read_init(lzma_range_decoder *rc, const uint8_t *restrict in,
+ size_t *restrict in_pos, size_t in_size)
{
while (rc->init_bytes_left > 0) {
if (*in_pos == in_size)