summaryrefslogtreecommitdiffstats
path: root/examples/HCStreaming_ringBuffer.c
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-11-25 01:18:46 (GMT)
committerYann Collet <cyan@fb.com>2017-11-25 01:18:46 (GMT)
commit6c94c94d4673bd2c0bc3ff80ca17cff8c19a465a (patch)
treec9246948500265f1056b5abbe5cde6c5de056441 /examples/HCStreaming_ringBuffer.c
parentda8bed4b01fc1221681a8d0bce768444200e91e3 (diff)
downloadlz4-6c94c94d4673bd2c0bc3ff80ca17cff8c19a465a.zip
lz4-6c94c94d4673bd2c0bc3ff80ca17cff8c19a465a.tar.gz
lz4-6c94c94d4673bd2c0bc3ff80ca17cff8c19a465a.tar.bz2
minor updates to examples
see https://github.com/lz4/lz4/commit/810e2ca27b3561e0f6bfa7a88e0fde6faf807064#commitcomment-25810887
Diffstat (limited to 'examples/HCStreaming_ringBuffer.c')
-rw-r--r--examples/HCStreaming_ringBuffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/HCStreaming_ringBuffer.c b/examples/HCStreaming_ringBuffer.c
index d49b267..a878577 100644
--- a/examples/HCStreaming_ringBuffer.c
+++ b/examples/HCStreaming_ringBuffer.c
@@ -1,12 +1,12 @@
// LZ4 HC streaming API example : ring buffer
-// Based on previous work from Takayuki Matsuoka
+// Based on a previous example by Takayuki Matsuoka
/**************************************
* Compiler Options
**************************************/
-#ifdef _MSC_VER /* Visual Studio */
-# define _CRT_SECURE_NO_WARNINGS /* for MSVC */
+#if defined(_MSC_VER) && (_MSC_VER <= 1800) /* Visual Studio <= 2013 */
+# define _CRT_SECURE_NO_WARNINGS
# define snprintf sprintf_s
#endif