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;
return str;
}
-static int
+static intptr_t
do_spawnT(int mode, const _TCHAR* cmdname, const _TCHAR* args, const _TCHAR* envp)
{
STARTUPINFO StartupInfo = {0};
{
case _P_NOWAIT:
case _P_NOWAITO:
- return((int)ProcessInformation.hProcess);
+ return((intptr_t)ProcessInformation.hProcess);
case _P_OVERLAY:
CloseHandle(ProcessInformation.hProcess);
_exit(0);
CloseHandle(ProcessInformation.hProcess);
return( 0);
}
- return( (int)ProcessInformation.hProcess);
+ return( (intptr_t)ProcessInformation.hProcess);
}
/*
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;
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;
#include <string.h>
+#undef __MINGW_IMPORT
+#define __MINGW_IMPORT
#include <ctype.h>
#undef _pctype