Linux build fixes

This commit is contained in:
Matt Pharr
2011-09-17 13:42:46 -07:00
parent 2405dae8e6
commit 9052d4b10b
3 changed files with 9 additions and 0 deletions

View File

@@ -54,6 +54,9 @@
#include <stdint.h>
#include <stdlib.h>
#include <errno.h>
#ifdef ISPC_IS_LINUX
#include <malloc.h>
#endif
static int initialized = 0;
static volatile int32_t lock = 0;

View File

@@ -49,6 +49,9 @@
#include <stdint.h>
#include <stdlib.h>
#include <memory.h>
#ifdef ISPC_IS_LINUX
#include <malloc.h>
#endif
#ifdef ISPC_HAVE_SVML
#include <xmmintrin.h>

View File

@@ -43,6 +43,9 @@
#include <stdio.h>
#include <assert.h>
#include <stdint.h>
#ifdef ISPC_IS_LINUX
#include <malloc.h>
#endif
extern "C" {
extern int width();