From 913e0f408c48f3baf6933807f9cfe4195fde5c75 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Fri, 15 Jul 2016 13:59:23 -0700 Subject: Use Windows CRT string functions in some places. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copy wsutil/wsprintf.h from change 16537. Update it to use functions appropriate to Visual C++ >= 2015, < 2015, and everything else. Add notes about specific API issues. Update epan/expert.c to use ws_snprintf, since the VS profiler shows it as a minor hot spot. This reduces load time for a large-ish capture from ~14s to ~12s here. Migrate a previous column-utils change. Change-Id: Id4064b7c06c35fd447b63c73f731afee181df4f9 Reviewed-on: https://code.wireshark.org/review/16483 Reviewed-by: Gerald Combs Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde --- wsutil/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wsutil/Makefile.am') diff --git a/wsutil/Makefile.am b/wsutil/Makefile.am index 95c57d2582..2cedf9ddbb 100644 --- a/wsutil/Makefile.am +++ b/wsutil/Makefile.am @@ -89,7 +89,8 @@ libwsutil_nonrepl_INCLUDES = \ utf8_entities.h \ ws_cpuid.h \ ws_mempbrk.h \ - ws_mempbrk_int.h + ws_mempbrk_int.h \ + ws_printf.h # Header files for functions in libwsutil's ABI on this platform. libwsutil_abi_INCLUDES = \ -- cgit v1.2.3