From b5d2a0c8279a4e916969bc787a7f82048459bb9e Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 23 Nov 2015 17:10:19 +0100 Subject: [PATCH] visual compatibility --- programs/paramgrill.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/programs/paramgrill.c b/programs/paramgrill.c index 99ac909fe..47df78ab9 100644 --- a/programs/paramgrill.c +++ b/programs/paramgrill.c @@ -43,6 +43,10 @@ # define BMK_LEGACY_TIMER 1 #endif +#if defined(_MSC_VER) +# define snprintf _snprintf /* snprintf unsupported by Visual <= 2012 */ +#endif + /************************************** * Includes @@ -873,6 +877,7 @@ int usage(char* exename) DISPLAY( "Usage :\n"); DISPLAY( " %s [arg] file\n", exename); DISPLAY( "Arguments :\n"); + DISPLAY( " file : path to the file used as reference (if none, generates a compressible sample)\n"); DISPLAY( " -H/-h : Help (this text + advanced options)\n"); return 0; } @@ -881,7 +886,8 @@ int usage_advanced(void) { DISPLAY( "\nAdvanced options :\n"); DISPLAY( " -i# : iteration loops [1-9](default : %i)\n", NBLOOPS); - DISPLAY( " -P# : sample compressibility (default : %.1f%%)\n", COMPRESSIBILITY_DEFAULT * 100); + DISPLAY( " -B# : cut input into blocks of size # (default : single block)\n"); + DISPLAY( " -P# : generated sample compressibility (default : %.1f%%)\n", COMPRESSIBILITY_DEFAULT * 100); return 0; } -- 2.47.2