Commit 9c502882 by alokp@chromium.org

Fixed crash on 64-bit posix platform. stdint.h was not being included and wrong…

Fixed crash on 64-bit posix platform. stdint.h was not being included and wrong size of uintptr_t was being used. Review URL: http://codereview.appspot.com/1153044 git-svn-id: https://angleproject.googlecode.com/svn/trunk@258 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 1ddd1dd4
......@@ -51,12 +51,8 @@ NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdlib.h>
#include <string.h>
#ifdef __STDC99__
#ifndef _MSC_VER
#include <stdint.h>
#elif defined (_WIN64)
typedef unsigned __int64 uintptr_t;
#else
typedef unsigned int uintptr_t;
#endif
#include "compiler/preprocessor/memory.h"
......
......@@ -52,7 +52,7 @@ NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
typedef struct MemoryPool_rec MemoryPool;
extern MemoryPool *mem_CreatePool(size_t chunksize, unsigned align);
extern MemoryPool *mem_CreatePool(size_t chunksize, unsigned int align);
extern void mem_FreePool(MemoryPool *);
extern void *mem_Alloc(MemoryPool *p, size_t size);
extern void *mem_Realloc(MemoryPool *p, void *old, size_t oldsize, size_t newsize);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment