From 4f45cd3f1b6066dee58c6861d5eaf24b99eb91fb Mon Sep 17 00:00:00 2001 From: mlaurent Date: Sat, 18 Mar 2006 12:34:39 +0000 Subject: [PATCH] Add sizeof check git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeartwork@519953 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ConfigureChecks.cmake | 8 ++++++++ config.h.cmake | 13 +++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 1ce434ce..d6921509 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -93,3 +93,11 @@ check_prototype_exists(setenv stdlib.h HAVE_SETENV_PROTO) check_prototype_exists(strlcat string.h HAVE_STRLCAT_PROTO) check_prototype_exists(strlcpy string.h HAVE_STRLCPY_PROTO) + +check_type_size("int" SIZEOF_INT) +check_type_size("char *" SIZEOF_CHAR_P) +check_type_size("long" SIZEOF_LONG) +check_type_size("short" SIZEOF_SHORT) +check_type_size("size_t" SIZEOF_SIZE_T) +check_type_size("unsigned long" SIZEOF_UNSIGNED_LONG) + diff --git a/config.h.cmake b/config.h.cmake index 2accbdfb..f8d3d683 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -127,22 +127,23 @@ #define PACKAGE_VERSION "" /* The size of a `char *', as computed by sizeof. */ -#define SIZEOF_CHAR_P 4 +#define SIZEOF_CHAR_P ${SIZEOF_CHAR_P} /* The size of a `int', as computed by sizeof. */ -#define SIZEOF_INT 4 +#define SIZEOF_INT ${SIZEOF_INT} /* The size of a `long', as computed by sizeof. */ -#define SIZEOF_LONG 4 +#define SIZEOF_LONG ${SIZEOF_LONG} /* The size of a `short', as computed by sizeof. */ -#define SIZEOF_SHORT 2 +#define SIZEOF_SHORT ${SIZEOF_SHORT} /* The size of a `size_t', as computed by sizeof. */ -#define SIZEOF_SIZE_T 4 +#define SIZEOF_SIZE_T ${SIZEOF_SIZE_T} /* The size of a `unsigned long', as computed by sizeof. */ -#define SIZEOF_UNSIGNED_LONG 4 +#define SIZEOF_UNSIGNED_LONG ${SIZEOF_UNSIGNED_LONG} + /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 -- 2.11.4.GIT