diff options
| author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2009-01-02 20:51:47 +0000 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2009-01-02 21:53:47 -0800 |
| commit | 3a33c7b37f55d5bd30ff944625499e64919b9a9d (patch) | |
| tree | 1765d783910805c69509416785b2b780d9b36866 /src/common.h | |
| parent | 51eb2f90a1469542799823e0f3249520bf8f9cf3 (diff) | |
| download | libgit2-3a33c7b37f55d5bd30ff944625499e64919b9a9d.tar.gz | |
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>
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/common.h b/src/common.h index 9a827fad4..798d19706 100644 --- a/src/common.h +++ b/src/common.h @@ -14,10 +14,6 @@ #include <unistd.h> #include <string.h> -#ifndef PRIuPTR -# define PRIuPTR "lu" -#endif - #include "cc-compat.h" #include "git/common.h" #include "util.h" |
