Mercurial > hg > xemacs-beta
diff src/unexnt.c @ 812:f846c2ef930d
[xemacs-hg @ 2002-04-13 20:31:27 by jhar]
Document that MSVC6 or later required
author | jhar |
---|---|
date | Sat, 13 Apr 2002 20:31:34 +0000 |
parents | 943eaba38521 |
children | a634e3b7acc8 |
line wrap: on
line diff
--- a/src/unexnt.c Sun Apr 07 19:36:14 2002 +0000 +++ b/src/unexnt.c Sat Apr 13 20:31:34 2002 +0000 @@ -128,7 +128,7 @@ { char executable_path[PATH_MAX]; - if (GetModuleFileName (NULL, executable_path, PATH_MAX) == 0) + if (GetModuleFileNameA (NULL, executable_path, PATH_MAX) == 0) { exit (1); } @@ -225,7 +225,7 @@ dump_bss_and_heap (&in_file, &out_file); /* Patch up header fields; profiler is picky about this. */ - hImagehelp = LoadLibrary ("imagehlp.dll"); + hImagehelp = LoadLibraryA ("imagehlp.dll"); if (hImagehelp) { PIMAGE_DOS_HEADER dos_header; @@ -534,14 +534,14 @@ void *file_base; unsigned long size, upper_size, n_read; - file = CreateFile (filename, GENERIC_READ, FILE_SHARE_READ, NULL, - OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); + file = CreateFileA (filename, GENERIC_READ, FILE_SHARE_READ, NULL, + OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); if (file == INVALID_HANDLE_VALUE) abort (); size = GetFileSize (file, &upper_size); - file_mapping = CreateFileMapping (file, NULL, PAGE_WRITECOPY, - 0, size, NULL); + file_mapping = CreateFileMappingA (file, NULL, PAGE_WRITECOPY, + 0, size, NULL); if (!file_mapping) abort ();