[PATCH] Use inttypes.h rather than stdint.h.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jason Riedy
Date: Thursday, January 25, 2007 - 2:11 pm

Older Solaris machines lack stdint.h but have inttypes.h.
The standard has inttypes.h including stdint.h, so at worst
this pollutes the namespace a bit.

Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
---
   There's a simple work-around (-I. and a symlink), so I'll
   understand if this is dropped for being too damn stupid.  But
   I'm pretty sure Solaris 5.8 is still widespread (relatively
   speaking).

 git-compat-util.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-compat-util.h b/git-compat-util.h
index bf3ceb8..c1bcb00 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -46,7 +46,7 @@
 #include <arpa/inet.h>
 #include <netdb.h>
 #include <pwd.h>
-#include <stdint.h>
+#include <inttypes.h>
 #undef _ALL_SOURCE /* AIX 5.3L defines a struct list with _ALL_SOURCE. */
 #include <grp.h>
 #define _ALL_SOURCE 1
-- 
1.5.0.rc1.g6f729

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Use inttypes.h rather than stdint.h., Jason Riedy, (Thu Jan 25, 2:11 pm)
Re: [PATCH] Use inttypes.h rather than stdint.h., Randal L. Schwartz, (Thu Jan 25, 2:54 pm)
Re: [PATCH] Use inttypes.h rather than stdint.h., Simon 'corecode' Sch ..., (Thu Jan 25, 11:55 pm)