X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=wince%2Fwince.h;h=f4264dd8bd8c19103370140fa253f3eff7cd5252;hb=15634f32600dfd7c267231a107a89655e6a68433;hp=dec518b2806fd0d4452ce5ca12192af7a8cbb03c;hpb=e4451f11212da7808d6d529c6c4d8710c99c039b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/wince/wince.h b/wince/wince.h index dec518b..f4264dd 100644 --- a/wince/wince.h +++ b/wince/wince.h @@ -1,25 +1,46 @@ -// wince.h -// -// Time-stamp: <01/08/01 20:48:08 keuchel@w2k> +/* wince.h */ -// This file includes extracts from the celib-headers, because -// the celib-headers produces macro conflicts with defines in -// win32iop.h etc +/* Time-stamp: <01/08/01 20:48:08 keuchel@w2k> */ + +/* This file includes extracts from the celib-headers, because */ +/* the celib-headers produces macro conflicts with defines in */ +/* win32iop.h etc */ #ifndef WINCE_H #define WINCE_H 1 #include "celib_defs.h" -// include local copies of celib headers... +/* include local copies of celib headers... */ #include "errno.h" #include "sys/stat.h" #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, ...); @@ -38,11 +59,12 @@ XCE_EXPORT void XCEShowMessageA(const char *fmt, ...); #define gmtime xcegmtime #define localtime xcelocaltime #define asctime xceasctime -//#define utime xceutime +/* #define utime xceutime */ #define futime xcefutime #define ftime xceftime #define ctime xcectime #define gettimeofday xcegettimeofday +#define GetSystemTimeAsFileTime XCEGetSystemTimeAsFileTime XCE_EXPORT int xcesetuid(uid_t id); XCE_EXPORT int xceseteuid(uid_t id); @@ -113,7 +135,7 @@ XCE_EXPORT DWORD XCEAPI XCEGetModuleFileNameA(HMODULE hModule, LPTSTR lpName, DW XCE_EXPORT HMODULE XCEAPI XCEGetModuleHandleA(const char *lpName); XCE_EXPORT FARPROC XCEAPI XCEGetProcAddressA(HMODULE hMod, const char *name); -////////////////////////////////////////////////////////////////////// +/* //////////////////////////////////////////////////////////////////// */ #define getgid xcegetgid #define getegid xcegetegid @@ -123,11 +145,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