* configure.in: Don't test sizes of types.
* prof_init.c: Include stdint.h and inttypes.h if available.
(prof_int32): Always define as int32_t.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17815
dc483132-0cff-0310-8789-
dd5450dbe970
+2006-03-30 Ken Raeburn <raeburn@mit.edu>
+
+ * prof_int.h (SIZEOF_INT, SIZEOF_SHORT, SIZEOF_LONG)[_WIN32]:
+ Don't define.
+
+ * configure.in: Don't test sizes of types.
+
+ * prof_init.c: Include stdint.h and inttypes.h if available.
+ (prof_int32): Always define as int32_t.
+
2006-03-10 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (generate-files-mac): Depend on profile.h.
K5_AC_INIT(prof_parse.c)
CONFIG_RULES
AC_C_CONST
-AC_CHECK_SIZEOF(short)
-AC_CHECK_SIZEOF(int)
-AC_CHECK_SIZEOF(long)
AC_CHECK_HEADERS(unistd.h stdlib.h pwd.h)
AC_CHECK_FUNCS(stat access strdup)
AC_CHECK_MEMBERS([struct stat.st_mtimensec,struct stat.st_mtimespec.tv_nsec,struct stat.st_mtim.tv_nsec],,,[#include <sys/types.h>
#endif
#include <errno.h>
-/* Find a 4-byte integer type */
-#if (SIZEOF_SHORT == 4)
-typedef short prof_int32;
-#elif (SIZEOF_INT == 4)
-typedef int prof_int32;
-#elif (SIZEOF_LONG == 4)
-typedef long prof_int32;
-#else /* SIZEOF_LONG == 4 */
-error(do not have a 4-byte integer type)
-#endif /* SIZEOF_LONG == 4 */
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+typedef int32_t prof_int32;
errcode_t KRB5_CALLCONV
profile_init(const_profile_filespec_t *files, profile_t *ret_profile)
#include "com_err.h"
#include "profile.h"
-#if defined(_WIN32)
-#define SIZEOF_INT 4
-#define SIZEOF_SHORT 2
-#define SIZEOF_LONG 4
-#endif
-
typedef long prf_magic_t;
/*