- int -> intptr_t

- unsigned long -> uintptr_t
- #undef _MINGW_IMPORT in ctype.c, to avoid warnings

svn path=/branches/ros-amd64-bringup/; revision=34718
This commit is contained in:
Timo Kreuzer
2008-07-24 00:54:12 +00:00
parent 8a9b9256be
commit 267c44c1b1
5 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ int system(const char *command)
CloseHandle(ProcessInformation.hThread);
// system should wait untill the calling process is finished
_cwait(&nStatus,(int)ProcessInformation.hProcess,0);
_cwait(&nStatus,(intptr_t)ProcessInformation.hProcess,0);
CloseHandle(ProcessInformation.hProcess);
return nStatus;
+3 -3
View File
@@ -182,7 +182,7 @@ valisttosT(const _TCHAR* arg0, va_list alist, _TCHAR delim)
return str;
}
static int
static intptr_t
do_spawnT(int mode, const _TCHAR* cmdname, const _TCHAR* args, const _TCHAR* envp)
{
STARTUPINFO StartupInfo = {0};
@@ -304,7 +304,7 @@ do_spawnT(int mode, const _TCHAR* cmdname, const _TCHAR* args, const _TCHAR* env
{
case _P_NOWAIT:
case _P_NOWAITO:
return((int)ProcessInformation.hProcess);
return((intptr_t)ProcessInformation.hProcess);
case _P_OVERLAY:
CloseHandle(ProcessInformation.hProcess);
_exit(0);
@@ -317,7 +317,7 @@ do_spawnT(int mode, const _TCHAR* cmdname, const _TCHAR* args, const _TCHAR* env
CloseHandle(ProcessInformation.hProcess);
return( 0);
}
return( (int)ProcessInformation.hProcess);
return( (intptr_t)ProcessInformation.hProcess);
}
/*
+1 -1
View File
@@ -788,7 +788,7 @@ int __vfprintf(FILE *f, const char *fmt, va_list args)
flags |= ZEROPAD;
}
result = number(f,
(unsigned long) va_arg(args, void *), 16,
(uintptr_t) va_arg(args, void *), 16,
field_width, precision, flags);
if (result < 0)
return -1;
+1 -1
View File
@@ -761,7 +761,7 @@ int __vfwprintf(FILE *f, const wchar_t *fmt, va_list args)
flags |= ZEROPAD;
}
result = number(f,
(unsigned long) va_arg(args, void *), 16,
(uintptr_t) va_arg(args, void *), 16,
field_width, precision, flags);
if (result < 0)
return -1;
+2
View File
@@ -1,4 +1,6 @@
#include <string.h>
#undef __MINGW_IMPORT
#define __MINGW_IMPORT
#include <ctype.h>
#undef _pctype