Fixed Bug 1712 and Bug 1780 CompilerCompatibility
authorStefan Karlsson <stefan.karlsson@nokia.com>
Tue, 06 Apr 2010 16:47:49 +0100
branchCompilerCompatibility
changeset 29 32d0abd57edb
parent 25 8a20451cf4b8
child 30 30f62d96b898
Fixed Bug 1712 and Bug 1780
egl/eglinterface/include/1.4/khronos_types.h
egl/eglinterface/include/khrplatform.h
--- a/egl/eglinterface/include/1.4/khronos_types.h	Sun Mar 28 16:39:00 2010 +0100
+++ b/egl/eglinterface/include/1.4/khronos_types.h	Tue Apr 06 16:47:49 2010 +0100
@@ -31,6 +31,11 @@
 typedef TUint16 khronos_uint16_t; // unsigned short int
 typedef TInt32  khronos_int32_t;  // long int
 typedef TUint32 khronos_uint32_t; // unsigned long int
-typedef TUint64 khronos_utime_nanoseconds_t;  // unsigned long long
+
+typedef TInt64  khronos_int64_t;  // long int
+typedef TUint64 khronos_uint64_t; // unsigned long int
+
+typedef TUint64	khronos_utime_nanoseconds_t;
+typedef TInt32	khronos_stime_nanoseconds_t;
 
 #endif // __KHRONOS_TYPES_H__
--- a/egl/eglinterface/include/khrplatform.h	Sun Mar 28 16:39:00 2010 +0100
+++ b/egl/eglinterface/include/khrplatform.h	Tue Apr 06 16:47:49 2010 +0100
@@ -86,6 +86,8 @@
 
 #include <e32def.h>
 
+#include <khronos_types.h> // For khronos_int8_t and similar typedefinitions.
+
 /*-------------------------------------------------------------------------
  * Definition of KHRONOS_APICALL and KHRONOS_APIENTRY
  *-----------------------------------------------------------------------*/
@@ -128,7 +130,7 @@
 #	define KHRAPI KHRONOS_APICALL
 #endif
 
-#if defined (__ARMCC_2__)
+#if defined (__ARMCC__)
 #define KHRONOS_APIATTRIBUTES __softfp
 #else
 #define KHRONOS_APIATTRIBUTES
@@ -137,20 +139,6 @@
 #define KHRONOS_SUPPORT_INT64   0
 #define KHRONOS_SUPPORT_FLOAT   0
 
-typedef TReal32 khronos_float;    // float
-typedef TReal32 khronos_float_t;    // float
-typedef TInt8   khronos_int8_t;   // signed char
-typedef TUint8  khronos_uint8_t;  // unsigned char
-typedef TInt16  khronos_int16_t;  // short int
-typedef TUint16 khronos_uint16_t; // unsigned short int
-typedef TInt32  khronos_int32_t;  // long int
-typedef TUint32 khronos_uint32_t; // unsigned long int
-typedef TInt64  khronos_int64_t;  // long int
-typedef TUint64 khronos_uint64_t; // unsigned long int
-
-typedef TUint64	khronos_utime_nanoseconds_t;
-typedef TInt32	khronos_stime_nanoseconds_t;
-
 #ifdef __cplusplus
 }
 #endif