summaryrefslogtreecommitdiff
path: root/wince/wince.h
diff options
context:
space:
mode:
authorVadim Konovalov <vkonovalov@lucent.com>2003-07-06 22:46:09 +0400
committerJarkko Hietaniemi <jhi@iki.fi>2003-07-06 16:16:08 +0000
commit216db7eec92546173ac6bab178225bf585542186 (patch)
treec2161974d273973711d0329fa189f5f96d8e5f5a /wince/wince.h
parent16073f159843070bc8b173d94704d3759febc9f1 (diff)
downloadperl-216db7eec92546173ac6bab178225bf585542186.tar.gz
[PATCH] improve WinCE port
Date: Sun, 6 Jul 2003 18:46:09 +0400 Message-ID: <001401c343cd$8069cd40$ce5ec3d9@vad> Subject: [PATCH] improve WinCE port -- addition From: "Vadim Konovalov" <vkonovalov@peterstar.ru> Date: Sun, 6 Jul 2003 19:50:47 +0400 Message-ID: <000b01c343d6$7ff96920$5b5dc3d9@vad> p4raw-id: //depot/perl@20031
Diffstat (limited to 'wince/wince.h')
-rw-r--r--wince/wince.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/wince/wince.h b/wince/wince.h
index 29ec27472b..c82c7a696f 100644
--- a/wince/wince.h
+++ b/wince/wince.h
@@ -17,9 +17,30 @@
#include "time.h"
#include "cectype.h"
+#ifndef START_EXTERN_C
+#undef EXTERN_C
+#ifdef __cplusplus
+# define START_EXTERN_C extern "C" {
+# define END_EXTERN_C }
+# define EXTERN_C extern "C"
+#else
+# define START_EXTERN_C
+# define END_EXTERN_C
+# define EXTERN_C
+#endif
+#endif
+
+START_EXTERN_C
+
+#ifndef _IOFBF
#define _IOFBF 0x0000
+#endif
+#ifndef _IOLBF
#define _IOLBF 0x0040
+#endif
+#ifndef _IONBF
#define _IONBF 0x0004
+#endif
#if UNDER_CE <= 200
XCE_EXPORT double xceatof(const char *);
@@ -29,7 +50,7 @@ XCE_EXPORT int xcetolower(int c);
#define toupper xcetoupper
#define tolower xcetolower
#else
-double atof(const char *);
+XCE_EXPORT double atof(const char *);
#endif
XCE_EXPORT void XCEShowMessageA(const char *fmt, ...);
@@ -123,11 +144,12 @@ XCE_EXPORT FARPROC XCEAPI XCEGetProcAddressA(HMODULE hMod, const char *name);
#define strupr xcestrupr
#define time xcetime
-XCE_EXPORT LPVOID XCEGetEnvironmentStrings(VOID);
XCE_EXPORT BOOL XCEFreeEnvironmentStrings(LPCSTR buf);
#define GetEnvironmentStrings XCEGetEnvironmentStrings
#define FreeEnvironmentStrings XCEFreeEnvironmentStrings
void wce_hitreturn();
+END_EXTERN_C
+
#endif