summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-06-05 12:30:50 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-06-05 12:30:50 (GMT)
commit442147504feaf30b90aac3404b2db13d93dae980 (patch)
tree940086e62ffbf454c78e07c7afd1bdb297112678
parent61ccdc4e926d6de273c7759a7dd50215ae31a08a (diff)
downloadCMake-442147504feaf30b90aac3404b2db13d93dae980.zip
CMake-442147504feaf30b90aac3404b2db13d93dae980.tar.gz
CMake-442147504feaf30b90aac3404b2db13d93dae980.tar.bz2
COMP: make the new check_type_size work with the HPUX cc compiler: const doesn't exist there
Alex
-rw-r--r--Modules/CheckTypeSizeC.c.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CheckTypeSizeC.c.in b/Modules/CheckTypeSizeC.c.in
index f9ff2e7..11a0616 100644
--- a/Modules/CheckTypeSizeC.c.in
+++ b/Modules/CheckTypeSizeC.c.in
@@ -18,6 +18,10 @@
#include <stdio.h>
+#ifdef __CLASSIC_C__
+# define const
+#endif
+
#define SIZE (sizeof(@CHECK_TYPE_SIZE_TYPE@))
const char info_sizeof[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','o','f','[',
('0' + ((SIZE / 10000)%10)),