symbian-qemu-0.9.1-12/model-libraries/commoninc/platformtypes.h
author Mike Kinghan <mikek@symbian.org>
Wed, 04 Aug 2010 10:56:22 +0100
branchGCC_SURGE
changeset 93 07b904f40417
parent 74 eb3d0111f868
child 114 19c4533e1567
permissions -rw-r--r--
Provisional fix for bug 3508 - Persistent storage support breaks Linux compatibility. Enables libnvmemmory.so to be built and dynamically linked on Linux and rom boot reports persistent storage image created OK, but ROM then crashes.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
74
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
     1
#ifndef PLATFORMTYPES_H
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
     2
#define PLATFORMTYPES_H
93
07b904f40417 Provisional fix for bug 3508 - Persistent storage support breaks Linux compatibility.
Mike Kinghan <mikek@symbian.org>
parents: 74
diff changeset
     3
#ifdef HAVE_STDINT_H
07b904f40417 Provisional fix for bug 3508 - Persistent storage support breaks Linux compatibility.
Mike Kinghan <mikek@symbian.org>
parents: 74
diff changeset
     4
#include <stdint.h>
07b904f40417 Provisional fix for bug 3508 - Persistent storage support breaks Linux compatibility.
Mike Kinghan <mikek@symbian.org>
parents: 74
diff changeset
     5
#else
74
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
     6
// TODO: We should have a proper type definition file created common for standalone model libraries
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
     7
typedef signed __int8         int8_t;
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
     8
typedef signed __int16        int16_t;
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
     9
typedef signed __int32        int32_t;
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
    10
typedef signed __int64        int64_t;
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
    11
typedef unsigned __int8     uint8_t;
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
    12
typedef unsigned __int8     u_int8_t;
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
    13
typedef unsigned __int16    uint16_t;
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
    14
typedef unsigned __int16    u_int16_t;
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
    15
typedef unsigned __int32    uint32_t;
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
    16
typedef unsigned __int32    u_int32_t;
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
    17
typedef unsigned __int64    uint64_t;
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
    18
typedef unsigned __int64    u_int64_t;
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
    19
typedef unsigned char byte_t;
93
07b904f40417 Provisional fix for bug 3508 - Persistent storage support breaks Linux compatibility.
Mike Kinghan <mikek@symbian.org>
parents: 74
diff changeset
    20
#endif
07b904f40417 Provisional fix for bug 3508 - Persistent storage support breaks Linux compatibility.
Mike Kinghan <mikek@symbian.org>
parents: 74
diff changeset
    21
74
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
    22
eb3d0111f868 start nvmemory
jahyvone@4FIL49437
parents:
diff changeset
    23
#endif // PLATFORMTYPES_H