summaryrefslogtreecommitdiffstats
path: root/defines.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-01-02 11:45:33 +1100
committerDamien Miller <djm@mindrot.org>2000-01-02 11:45:33 +1100
commit6b85a7ffa6aefa75be7b19fc08a99d3971e02412 (patch)
treea1e49bce1c5be172c1ecf82dc7b4874470f19e42 /defines.h
parent7cfd3e6fb631a59e28e3f6876d663fae4e63002d (diff)
- Added support for directory-based lastlogs
- Really fix typedefs, patch from Ben Taylor <bent@clark.net> - Prevent multiple inclusion of config.h and defines.h. Suggested by Andre Lucas <andre.lucas@dial.pipex.com>
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/defines.h b/defines.h
index 2a265595..40c1a3ea 100644
--- a/defines.h
+++ b/defines.h
@@ -1,3 +1,6 @@
+#ifndef _DEFINES_H
+#define _DEFINES_H
+
/* Necessary headers */
#include <sys/types.h> /* For u_intXX_t */
@@ -61,7 +64,7 @@ typedef long int int64_t;
# else
# if (SIZEOF_LONG_LONG_INT == 8)
typedef long long int int64_t;
-# define HAVE_INTXX_T
+# define HAVE_INTXX_T 1
# else
# error "64 bit int type not found."
# endif
@@ -74,6 +77,7 @@ typedef long long int int64_t;
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;
typedef uint64_t u_int64_t;
+# define HAVE_U_INTXX_T 1
# else
# if (SIZEOF_SHORT_INT == 2)
typedef unsigned short int u_int16_t;
@@ -90,7 +94,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
+# define HAVE_U_INTXX_T 1
# else
# error "64 bit int type not found."
# endif
@@ -224,3 +228,4 @@ typedef unsigned int size_t;
# define PAM_STRERROR(a,b) pam_strerror((a),(b))
#endif
+#endif /* _DEFINES_H */