[cmake-commits] alex committed CheckTypeSizeC.c.in 1.1 1.2
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Jun 5 08:30:53 EDT 2007
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv18438/Modules
Modified Files:
CheckTypeSizeC.c.in
Log Message:
COMP: make the new check_type_size work with the HPUX cc compiler: const doesn't exist there
Alex
Index: CheckTypeSizeC.c.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CheckTypeSizeC.c.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CheckTypeSizeC.c.in 4 Jun 2007 21:08:46 -0000 1.1
+++ CheckTypeSizeC.c.in 5 Jun 2007 12:30:50 -0000 1.2
@@ -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)),
More information about the Cmake-commits
mailing list