Check-in [79b6f2657b]
Overview
Comment:Updated to use stdint in Metakit to determine integer types
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:79b6f2657bebe8d873769272e48183bb456901d5
User & Date: rkeene on 2014-05-21 00:55:33
Other Links: manifest | tags
Context
2014-05-21
03:57
Updated to build Linux test as RHEL5 as well as allow user to specify individual targets check-in: 823074a385 user: rkeene tags: trunk
00:55
Updated to use stdint in Metakit to determine integer types check-in: 79b6f2657b user: rkeene tags: trunk
2014-05-20
22:58
Updated to include global CFLAGS/LDFLAGS/CPPFLAGS/LIBS in addition to per-project settings check-in: fddc41b4b8 user: rkeene tags: trunk
Changes

Added mk4tcl/patches/all/metakit-2.4.9.7-fix3264.diff version [cbea8b0f9a].

            1  +diff -uNr metakit-2.4.9.7.orig/include/mk4.h metakit-2.4.9.7-1fix3264/include/mk4.h
            2  +--- metakit-2.4.9.7.orig/include/mk4.h	2007-06-15 19:23:25.000000000 -0500
            3  ++++ metakit-2.4.9.7-1fix3264/include/mk4.h	2014-05-20 19:45:24.000000000 -0500
            4  +@@ -9,6 +9,8 @@
            5  + #ifndef __MK4_H__
            6  + #define __MK4_H__
            7  + 
            8  ++#include <stdint.h>
            9  ++
           10  + //---------------------------------------------------------------------------
           11  + //
           12  + //  TITLE
           13  +@@ -199,11 +201,7 @@
           14  + 
           15  + typedef unsigned char t4_byte; // create typedefs for t4_byte, etc.
           16  + 
           17  +-#if q4_LONG64
           18  +-typedef int t4_i32; // if longs are 64b, then int must be 32b
           19  +-#else 
           20  +-typedef long t4_i32; // if longs aren't 64b, then they are 32b
           21  +-#endif 
           22  ++typedef int32_t t4_i32;
           23  + 
           24  + #if q4_LONG64           // choose a way to represent 64b integers
           25  + typedef long t4_i64;
           26  +diff -uNr metakit-2.4.9.7.orig/src/header.h metakit-2.4.9.7-1fix3264/src/header.h
           27  +--- metakit-2.4.9.7.orig/src/header.h	2007-03-09 09:58:53.000000000 -0600
           28  ++++ metakit-2.4.9.7-1fix3264/src/header.h	2014-05-20 19:40:12.000000000 -0500
           29  +@@ -13,6 +13,10 @@
           30  + 
           31  + #include "config.h"
           32  + 
           33  ++#ifdef HAVE_STDINT_H
           34  ++# include <stdint.h>
           35  ++#endif
           36  ++
           37  + /////////////////////////////////////////////////////////////////////////////
           38  + // A number of preprocessor options are used in the source code
           39  + //
           40  +@@ -139,11 +143,7 @@
           41  + 
           42  + typedef unsigned char t4_byte; // create typedefs for t4_byte, etc.
           43  + 
           44  +-#if SIZEOF_LONG == 8
           45  +-typedef int t4_i32; // longs are 64b, so int must be 32b
           46  +-#else 
           47  +-typedef long t4_i32; // longs aren't 64b, so they are 32b
           48  +-#endif 
           49  ++typedef int32_t t4_i32;
           50  + 
           51  + /////////////////////////////////////////////////////////////////////////////
           52  + // Include header files which contain additional os/cpu/ide/fw specifics