[Bug libfortran/16135] libfortran doesn't build, use of C99 types

ebotcazou at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Oct 3 12:57:00 GMT 2004


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-10-03 12:57 -------
With something like this:

Index: libgfortran.h
===================================================================
RCS file: /cvs/gcc/gcc/libgfortran/libgfortran.h,v
retrieving revision 1.13
diff -u -r1.13 libgfortran.h
--- libgfortran.h	21 Sep 2004 12:38:33 -0000	1.13
+++ libgfortran.h	3 Oct 2004 11:45:21 -0000
@@ -47,6 +47,17 @@
 #include <inttypes.h>
 #endif
 
+#if !defined(HAVE_STDINT_H) && !defined(HAVE_INTTYPES_H)
+typedef char int8_t;
+typedef short int16_t;
+typedef int int32_t;
+typedef long long int64_t;
+typedef unsigned char uint8_t;
+typedef unsigned short uint16_t;
+typedef unsigned int uint32_t;
+typedef unsigned long long uint64_t;
+#endif
+
 #if HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif

the library builds on sparc-sun-solaris2.5.1.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16135



More information about the Gcc-bugs mailing list