summaryrefslogtreecommitdiffstats
path: root/examples/HCStreaming_ringBuffer.c
diff options
context:
space:
mode:
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