*
**************************************************************************/
+#ifdef _WIN32
+
#include <windows.h>
#include <assert.h>
getProcessName(void)
{
String path;
- size_t size = MAX_PATH;
+ DWORD size = MAX_PATH;
char *buf = path.buf(size);
DWORD nWritten = GetModuleFileNameA(NULL, buf, size);
getCurrentDir(void)
{
String path;
- size_t size = MAX_PATH;
+ DWORD size = MAX_PATH;
char *buf = path.buf(size);
DWORD ret = GetCurrentDirectoryA(size, buf);
sep = ' ';
}
- STARTUPINFO startupInfo;
+ STARTUPINFOA startupInfo;
memset(&startupInfo, 0, sizeof(startupInfo));
startupInfo.cb = sizeof(startupInfo);
} /* namespace os */
+
+#endif // defined(_WIN32)