summaryrefslogtreecommitdiff
path: root/lodepng.cpp
diff options
context:
space:
mode:
authorLode <lvandeve@gmail.com>2015-09-12 23:55:54 +0200
committerLode <lvandeve@gmail.com>2015-09-12 23:55:54 +0200
commit3d1b5d685fca913bcf56753f12c4b538da6878e8 (patch)
tree7609e2cdf424aac7d1bb12528d3cc126bb0a6b0b /lodepng.cpp
parent0bceffb6eca66fe405c59f5c58c6ef2ff1be4add (diff)
add LODEPNG_NO_COMPILE_CRC compile option
Diffstat (limited to 'lodepng.cpp')
-rw-r--r--lodepng.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lodepng.cpp b/lodepng.cpp
index 326b952..ee87d04 100644
--- a/lodepng.cpp
+++ b/lodepng.cpp
@@ -1,5 +1,5 @@
/*
-LodePNG version 20150418
+LodePNG version 20150912
Copyright (c) 2005-2015 Lode Vandevenne
@@ -42,7 +42,7 @@ Rename this file to lodepng.cpp to use it for C++, or to lodepng.c to use it for
#pragma warning( disable : 4996 ) /*VS does not like fopen, but fopen_s is not standard C so unusable here*/
#endif /*_MSC_VER */
-const char* LODEPNG_VERSION_STRING = "20150418";
+const char* LODEPNG_VERSION_STRING = "20150912";
/*
This source file is built up in the following large parts. The code sections
@@ -2296,6 +2296,8 @@ const LodePNGDecompressSettings lodepng_default_decompress_settings = {0, 0, 0,
/* / CRC32 / */
/* ////////////////////////////////////////////////////////////////////////// */
+
+#ifndef LODEPNG_NO_COMPILE_CRC
/* CRC polynomial: 0xedb88320 */
static unsigned lodepng_crc32_table[256] = {
0u, 1996959894u, 3993919788u, 2567524794u, 124634137u, 1886057615u, 3915621685u, 2657392035u,
@@ -2344,6 +2346,7 @@ unsigned lodepng_crc32(const unsigned char* buf, size_t len)
}
return c ^ 0xffffffffL;
}
+#endif /* !LODEPNG_NO_COMPILE_CRC */
/* ////////////////////////////////////////////////////////////////////////// */
/* / Reading and writing single bits and bytes from/to stream for LodePNG / */