From 0e79cb04d61eec08580aa2ccc2883b9459db3cf1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 5 Jan 2005 10:23:41 +0000 Subject: [PATCH] Only use type 'long long' when available. --- configure.in | 5 ++++- src/nmem.c | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index ddce49a..8e0cc7d 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl YAZ Toolkit, Index Data 1994-2004 dnl See the file LICENSE for details. -dnl $Id: configure.in,v 1.164 2005-01-04 09:41:34 adam Exp $ +dnl $Id: configure.in,v 1.165 2005-01-05 10:23:41 adam Exp $ AC_INIT(include/yaz/yaz-version.h) AM_INIT_AUTOMAKE(yaz, 2.0.31) AM_MAINTAINER_MODE @@ -19,6 +19,9 @@ AC_PATH_PROG(pkgconfigpath, pkg-config, NONE) dnl YAZ_DOC dnl +dnl ----- Types +AC_CHECK_TYPES([long long]) +dnl dnl ----- Sockets checkBoth=0 AC_CHECK_FUNC(connect) diff --git a/src/nmem.c b/src/nmem.c index 947a492..1f8824f 100644 --- a/src/nmem.c +++ b/src/nmem.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 1995-2004, Index Data. + * Copyright (c) 1995-2005, Index Data. * See the file LICENSE for details. * - * $Id: nmem.c,v 1.10 2005-01-04 21:27:54 mike Exp $ + * $Id: nmem.c,v 1.11 2005-01-05 10:23:42 adam Exp $ */ /** @@ -49,7 +49,9 @@ struct align { short s; int i; long l; +#if HAVE_LONG_LONG long long ll; +#endif float f; double d; } u; -- 1.7.10.4