Hash :
3a33c7b3
Author :
Date :
2009-01-02T20:51:47
Fix snprintf compiler warning on cygwin As far as gcc is concerned, the "z size specifier" is available as an extension to the language, which is available with or without any -std= switch. (I think you have to go back to 2.95 for a version of gcc which doesn't work.) Many other compilers have this as an extension as well (ie without the equivalent of -std=c99). Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
#ifndef INCLUDE_common_h__
#define INCLUDE_common_h__
#include "git/thread-utils.h"
#ifdef GIT_HAS_PTHREAD
# include <pthread.h>
#endif
#include <inttypes.h>
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "cc-compat.h"
#include "git/common.h"
#include "util.h"
#include "thread-utils.h"
#include "errors.h"
#define GIT_PATH_MAX 4096
#endif /* INCLUDE_common_h__ */