瀏覽代碼

gallium: WinCE build fixes.

tags/mesa_20090313
José Fonseca 17 年之前
父節點
當前提交
9e3aaa5048
共有 2 個檔案被更改,包括 15 行新增0 行删除
  1. 9
    0
      src/gallium/auxiliary/util/u_snprintf.c
  2. 6
    0
      src/gallium/include/pipe/p_util.h

+ 9
- 0
src/gallium/auxiliary/util/u_snprintf.c 查看文件

@@ -334,6 +334,15 @@ static void *mymemcpy(void *, void *, size_t);
#endif /* HAVE_UINTPTR_T || defined(uintptr_t) */
#endif /* !defined(UINTPTR_T) */

/* WinCE5.0 does not have uintptr_t defined */
#if (_WIN32_WCE < 600)
#ifdef UINTPTR_T
#undef UINTPTR_T
#endif
#define UINTPTR_T unsigned long int
#endif


/* Support for ptrdiff_t. */
#ifndef PTRDIFF_T
#if HAVE_PTRDIFF_T || defined(ptrdiff_t)

+ 6
- 0
src/gallium/include/pipe/p_util.h 查看文件

@@ -99,6 +99,12 @@ __inline double __cdecl atan2(double val)
#include <stdarg.h>
#endif

/* Define ENOMEM for WINCE */
#if (_WIN32_WCE < 600)
#ifndef ENOMEM
#define ENOMEM 12
#endif
#endif

#ifdef __cplusplus
extern "C" {

Loading…
取消
儲存