Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpc/stand make this compile on WCE200 SDK
details: https://anonhg.NetBSD.org/src/rev/d12812dbe711
branches: trunk
changeset: 504540:d12812dbe711
user: uch <uch%NetBSD.org@localhost>
date: Sun Mar 04 16:59:47 2001 +0000
description:
make this compile on WCE200 SDK
diffstat:
sys/arch/hpc/stand/hpcboot/file_http.cpp | 7 ++++++-
sys/arch/hpc/stand/hpcboot/hpcdefs.h | 15 ++++++++++++++-
sys/arch/hpc/stand/include/machine/types.h | 11 +++++++++--
3 files changed, 29 insertions(+), 4 deletions(-)
diffs (76 lines):
diff -r 2e09556bba38 -r d12812dbe711 sys/arch/hpc/stand/hpcboot/file_http.cpp
--- a/sys/arch/hpc/stand/hpcboot/file_http.cpp Sun Mar 04 16:52:44 2001 +0000
+++ b/sys/arch/hpc/stand/hpcboot/file_http.cpp Sun Mar 04 16:59:47 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: file_http.cpp,v 1.1 2001/02/09 18:34:38 uch Exp $ */
+/* $NetBSD: file_http.cpp,v 1.2 2001/03/04 16:59:47 uch Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -40,6 +40,11 @@
#include <file_http.h>
#include <console.h>
+#if _WIN32_WCE < 210
+#define tolower(c) ((c) - 'A' + 'a')
+#define wcsicmp _wcsicmp
+#endif
+
static int __stricmp(const char *, const char *);
HttpFile::HttpFile(Console *&cons)
diff -r 2e09556bba38 -r d12812dbe711 sys/arch/hpc/stand/hpcboot/hpcdefs.h
--- a/sys/arch/hpc/stand/hpcboot/hpcdefs.h Sun Mar 04 16:52:44 2001 +0000
+++ b/sys/arch/hpc/stand/hpcboot/hpcdefs.h Sun Mar 04 16:59:47 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hpcdefs.h,v 1.1 2001/02/09 18:34:43 uch Exp $ */
+/* $NetBSD: hpcdefs.h,v 1.2 2001/03/04 16:59:47 uch Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -46,6 +46,19 @@
#include <windowsx.h>
#include <commctrl.h>
+#if _WIN32_WCE == 101
+#include <winnls.h>
+#elif WIN32_WCE == 100
+#error "can't convert WideChar <-> MutiByte"
+#endif
+#if _WIN32_WCE < 200
+#include <ctype.h>
+#include <stdlib.h>
+#endif
+#if _WIN32_WCE < 210
+#define EOF (-1)
+#endif
+
#include <machine/cdefs.h>
#include <machine/types.h>
#include <machine/int_types.h>
diff -r 2e09556bba38 -r d12812dbe711 sys/arch/hpc/stand/include/machine/types.h
--- a/sys/arch/hpc/stand/include/machine/types.h Sun Mar 04 16:52:44 2001 +0000
+++ b/sys/arch/hpc/stand/include/machine/types.h Sun Mar 04 16:59:47 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.1 2001/02/09 18:35:33 uch Exp $ */
+/* $NetBSD: types.h,v 1.2 2001/03/04 16:59:47 uch Exp $ */
/* Windows CE architecture */
@@ -20,8 +20,15 @@
typedef u_int32_t off_t;
#define off_t u_int32_t
+#ifndef _TIME_T_DEFINED
+#if _WIN32_WCE < 210
+typedef long time_t;
+#else
+typedef unsigned long time_t;
+#endif
#define _TIME_T_DEFINED
-typedef unsigned long time_t;
+#endif
+
typedef unsigned int size_t;
/* Windows CE virtual address */
Home |
Main Index |
Thread Index |
Old Index