summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-12-31 09:18:12 +1100
committerDamien Miller <djm@mindrot.org>1999-12-31 09:18:12 +1100
commitb2532b3be4133d2ea7bf6acaf2b0edb8217d356e (patch)
treec7256df8d3ba7cef3166d1a9670be5ef719ed6d1 /defines.h
parent03783f0477a97346afaa506667f1cd91f943a6fd (diff)
- Prevent typedefs from being compiled more than once. Report from
Marc G. Fournier <marc.fournier@acadiau.ca>
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index 10f72f47..fdd37bb8 100644
--- a/defines.h
+++ b/defines.h
@@ -61,6 +61,7 @@ typedef long int int64_t;
# else
# if (SIZEOF_LONG_LONG_INT == 8)
typedef long long int int64_t;
+# define HAVE_INTXX_T
# else
# error "64 bit int type not found."
# endif
@@ -89,6 +90,7 @@ typedef unsigned long int u_int64_t;
# else
# if (SIZEOF_LONG_LONG_INT == 8)
typedef unsigned long long int u_int64_t;
+# define HAVE_U_INTXX_T
# else
# error "64 bit int type not found."
# endif
@@ -100,14 +102,17 @@ typedef unsigned long long int u_int64_t;
/* being defined by the above */
#ifndef HAVE_QUAD_T
typedef int64_t quad_t;
+# define HAVE_QUAD_T
#endif
#ifndef HAVE_SOCKLEN_T
typedef unsigned int socklen_t;
+# define HAVE_SOCKLEN_T
#endif /* HAVE_SOCKLEN_T */
#ifndef HAVE_SIZE_T
typedef unsigned int size_t;
+# define HAVE_SIZE_T
#endif /* HAVE_SIZE_T */
/* Paths */