wrapper.c: only define gitmkstemps if needed
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Sun, 6 Oct 2013 20:50:00 +0000 (21:50 +0100)
committerJonathan Nieder <jrnieder@gmail.com>
Mon, 14 Oct 2013 23:16:00 +0000 (16:16 -0700)
commitec145c9c2ef0ddf0ca8b57b968054f4db9de63b3
treefd8e7e7c352afb908d6d0802998cf5658e180202
parentce1e8462070868bd83f9bc79f90f62d6927f8332
wrapper.c: only define gitmkstemps if needed

When the NO_MKSTEMPS build variable is not set, the gitmkstemps
function is dead code.  Use a preprocessor conditional to only include
the definition when needed.

Noticed by sparse.  ("'gitmkstemps' was not declared. Should it be
static?")

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
wrapper.c