shithub: choc

Download patch

ref: 3831ece14e28284302cc1a49f568b5c0b6858f90
parent: 7f9b5d41173c7db6465a5f7666fe7913106a8c1c
author: Simon Howard <[email protected]>
date: Sat Jun 6 21:33:58 EDT 2009

Include libc_wince.h when on Windows CE.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1559

--- a/src/doomtype.h
+++ b/src/doomtype.h
@@ -29,6 +29,13 @@
 #ifndef __DOOMTYPE__
 #define __DOOMTYPE__
 
+// Windows CE is missing some vital ANSI C functions.  We have to
+// use our own replacements.
+
+#ifdef _WIN32_WCE
+#include "libc_wince.h"
+#endif
+
 // C99 integer types; with gcc we just use this.  Other compilers 
 // should add conditional statements that define the C99 types.