summaryrefslogtreecommitdiff
path: root/wince/wince.h
diff options
context:
space:
mode:
authoruema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-26 05:25:30 +0000
committeruema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-26 05:25:30 +0000
commit5f0df5186540dd5a6f11063f6e420c86636b235d (patch)
tree1330399ba14a2e9a26cba8c40db9ebd54ba95441 /wince/wince.h
parent6068cd754095d7f0742438ffd21d201775eda229 (diff)
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def, io.c, process.c, signal.c, string.c, time.c) * wince/ : files added. (assert.c, Makefile.sub, mkexports.rb, io_wce.c, process_wce.c, signal_wce.c, string_wce.c, time_wce.c) * wince/configure.bat : like mswin32 style. * wince/direct.c : remove "static" at _currentdir. * wince/io.h : change definition. * wince/stdio.c : _fdopen -> fdopen. * wince/process.h : add_P_OVERLAY. * wince/time.h : change definition. * wince/wincemain.c : add wce_SetCurrentDir. * wince/wince.c : add wce_SetCurrentDir and wce_fopen. fix GetModuleFileNameA to return correct "lpFileName". * wince/wince.h : remove #ifdef. * wince/sys/utime.h, utime.c : rename _utime to utime. * wince/sys/stat.c : expand relative directory in stat. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'wince/wince.h')
-rw-r--r--wince/wince.h39
1 files changed, 8 insertions, 31 deletions
diff --git a/wince/wince.h b/wince/wince.h
index 4081042..7a562f7 100644
--- a/wince/wince.h
+++ b/wince/wince.h
@@ -56,81 +56,53 @@ extern "C" {
/* Win32 API redifinition. */
-#ifdef GetCommandLine
#undef GetCommandLine
#define GetCommandLine GetCommandLineA
-#endif
-#ifdef SetFileAttributes
#undef SetFileAttributes
#define SetFileAttributes SetFileAttributesA
-#endif
-#ifdef GetFileAttributes
#undef GetFileAttributes
#define GetFileAttributes GetFileAttributesA
-#endif
-#ifdef FormatMessage
#undef FormatMessage
#define FormatMessage FormatMessageA
-#endif
-#ifdef GetModuleFileName
#undef GetModuleFileName
#define GetModuleFileName GetModuleFileNameA
-#endif
-#ifdef CreateFile
#undef CreateFile
#define CreateFile CreateFileA
-#endif
-#ifdef MoveFile
#undef MoveFile
#define MoveFile MoveFileA
-#endif
-#ifdef DeleteFile
#undef DeleteFile
#define DeleteFile DeleteFileA
-#endif
-#ifdef CreateProcess
#undef CreateProcess
#define CreateProcess CreateProcessA
-#endif
-#ifdef CharNext
#undef CharNext
#define CharNext CharNextA
-#endif
-#ifdef CharPrev
#undef CharPrev
#define CharPrev CharPrevA
-#endif
-#ifdef WIN32_FIND_DATA
#undef WIN32_FIND_DATA
#define WIN32_FIND_DATA WIN32_FIND_DATAA
-#endif
-#ifdef FindFirstFile
#undef FindFirstFile
#define FindFirstFile FindFirstFileA
-#endif
-#ifdef FindNextFile
#undef FindNextFile
#define FindNextFile FindNextFileA
-#endif
/* stdio.c */
FILE *freopen(const char *filename, const char *mode, FILE *file);
-FILE *_fdopen( int handle, const char *mode );
+FILE *fdopen( int handle, const char *mode );
-#define fdopen _fdopen
+//#define fdopen _fdopen
/* stdlib.c */
char *getenv(const char *charstuff);
@@ -141,9 +113,12 @@ char *strdup(const char * str);
/* char *strerror(int errno); */
int strnicmp( const char *s1, const char *s2, size_t count );
-#define strnicmp _strnicmp
+//#define strnicmp _strnicmp
+#define stricmp _stricmp
/* for win32.c */
+FARPROC GetProcAddressX(HMODULE hModule, LPCSTR lpProcName);
+
BOOL MoveFileEx(LPCSTR oldname, LPCSTR newname, DWORD dwFlags);
BOOL DuplicateHandle(
HANDLE source_process, HANDLE source,
@@ -186,6 +161,8 @@ char* wce_wctomb(const wchar_t* w);
/* other helpers. */
void wce_SetCommandLine(LPCWSTR wcmd);
void wce_FreeCommandLine(void);
+TCHAR *wce_replaceRelativeDir(const char* str);
+void wce_SetCurrentDir();
#if _WIN32_WCE < 300
/* for Handheld PC Pro. */