Hi!
Is this the right way to make 21.5.6 compile under Windows NT?
diff -ur xemacs-21.5.6.orig/src/unexnt.c xemacs-21.5.6/src/unexnt.c
--- xemacs-21.5.6.orig/src/unexnt.c Wed Mar 13 09:53:02 2002
+++ xemacs-21.5.6/src/unexnt.c Wed Apr 10 11:42:44 2002
@@ -128,7 +128,7 @@
{
char executable_path[PATH_MAX];
- if (GetModuleFileName (NULL, executable_path, PATH_MAX) == 0)
+ if (qxeGetModuleFileName (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 = qxeLoadLibrary ("imagehlp.dll");
if (hImagehelp)
{
PIMAGE_DOS_HEADER dos_header;
@@ -534,13 +534,13 @@
void *file_base;
unsigned long size, upper_size, n_read;
- file = CreateFile (filename, GENERIC_READ, FILE_SHARE_READ, NULL,
+ file = qxeCreateFile (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,
+ file_mapping = qxeCreateFileMapping (file, NULL, PAGE_WRITECOPY,
0, size, NULL);
if (!file_mapping)
abort ();
Cheers,
- Peter
--
Peter 'Luna' Runestig (fd. Altberg), Sweden <peter(a)runestig.com>
PGP Key ID: 0xD07BBE13
Fingerprint: 7B5C 1F48 2997 C061 DE4B 42EA CB99 A35C D07B BE13
AOL Instant Messenger Screenname: PRunestig