]> git.ipfire.org Git - thirdparty/krb5.git/commit
declare replacement [v]asprintf functions
authorKen Raeburn <raeburn@mit.edu>
Thu, 5 Feb 2009 02:16:22 +0000 (02:16 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 5 Feb 2009 02:16:22 +0000 (02:16 +0000)
commit1f423bd14f7bb42d1e594818598767810fe7f704
treeb3a4e31d12decb932543dfd1e0ddb8e4ac40fa5b
parent1705970a5aebaeb693fb5e074a7948ac4b03f7ef
declare replacement [v]asprintf functions

If HAVE_VASPRINTF is not defined, make sure krb5int_{,v}asprintf
functions always get declared, applying the preprocessor conditional
test only to the GCC format attribute.  If HAVE_VASPRINTF is defined,
don't declare them at all.

This fixes a bunch of function-not-declared warnings under Sun cc.

ticket: 6364
target_version: 1.7
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21888 dc483132-0cff-0310-8789-dd5450dbe970
src/include/k5-platform.h