From: Tim-Philipp Müller Date: Mon, 29 Jun 2009 20:56:15 +0000 (+0100) Subject: win32.mak: add 'check-nonportable-int64-print-format' target X-Git-Tag: upstream/20130618~199 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac26f5b34e124580d7591bd7a1b28799910694fc;p=platform%2Fupstream%2Fgst-common.git win32.mak: add 'check-nonportable-int64-print-format' target Check for non-portable printf strings (%lld, %llu, %llx etc.). --- diff --git a/win32.mak b/win32.mak index d9964a3..87ac482 100644 --- a/win32.mak +++ b/win32.mak @@ -56,6 +56,16 @@ check-exports: fi; \ exit $$fail +# complain about nonportable 64-bit printf format strings (%lld, %llu etc.) +check-nonportable-int64-print-format: + fail=0 ; \ + loc=`find "$(top_srcdir)" -name '*.c' | xargs grep -n -e '%[0-9]*ll[udx]'`; \ + if test "x$$loc" != "x"; then \ + echo "Please fix the following print format strings:" ; \ + find "$(top_srcdir)" -name '*.c' | xargs grep -n -e '%[0-9]*ll[udx]'; \ + fail=1; \ + fi; \ + exit $$fail dist-hook: check-exports win32-check-crlf