mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- 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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#include <string.h>
|
||||
#undef __MINGW_IMPORT
|
||||
#define __MINGW_IMPORT
|
||||
#include <ctype.h>
|
||||
|
||||
#undef _pctype
|
||||
|
||||
Reference in New Issue
Block a user