# HG changeset patch # User james # Date 1063657307 0 # Node ID fba0799e2d79fb27f86ff454c1cc6865389b4eb6 # Parent 74353ce403ce82f590151ad6eb324d89671ca423 [xemacs-hg @ 2003-09-15 20:21:44 by james] Remove references to GetLongPathNameW since old Windows doesn't have it and we aren't using it anyway. diff -r 74353ce403ce -r fba0799e2d79 src/ChangeLog --- a/src/ChangeLog Mon Sep 15 15:24:57 2003 +0000 +++ b/src/ChangeLog Mon Sep 15 20:21:47 2003 +0000 @@ -1,3 +1,10 @@ +2002-07-04 Jonathan Harris + + * intl-encap-win32.c: + * intl-auto-encap-win32.c: + * intl-auto-encap-win32.h: + Remove GetLongPathNameW - API not available on Win95/NT4 + 2003-09-15 Jerry James * syswindows.h: Quiet compiler warnings about struct stat. diff -r 74353ce403ce -r fba0799e2d79 src/intl-auto-encap-win32.c --- a/src/intl-auto-encap-win32.c Mon Sep 15 15:24:57 2003 +0000 +++ b/src/intl-auto-encap-win32.c Mon Sep 15 20:21:47 2003 +0000 @@ -2571,14 +2571,7 @@ return GetShortPathNameA ((LPCSTR) lpszLongPath, (LPSTR) lpszShortPath, cchBuffer); } -DWORD -qxeGetLongPathName (const Extbyte * lpszShortPath, Extbyte * lpszLongPath, DWORD cchBuffer) -{ - if (XEUNICODE_P) - return GetLongPathNameW ((LPCWSTR) lpszShortPath, (LPWSTR) lpszLongPath, cchBuffer); - else - return GetLongPathNameA ((LPCSTR) lpszShortPath, (LPSTR) lpszLongPath, cchBuffer); -} +/* Error if GetLongPathName used: Win98/2K+ only */ /* Skipping GetEnvironmentStrings because misnamed ANSI version of the function */ diff -r 74353ce403ce -r fba0799e2d79 src/intl-auto-encap-win32.h --- a/src/intl-auto-encap-win32.h Mon Sep 15 15:24:57 2003 +0000 +++ b/src/intl-auto-encap-win32.h Mon Sep 15 20:21:47 2003 +0000 @@ -1825,11 +1825,8 @@ #endif DWORD qxeGetShortPathName (const Extbyte * lpszLongPath, Extbyte * lpszShortPath, DWORD cchBuffer); -#ifdef ERROR_WHEN_NONINTERCEPTED_FUNS_USED #undef GetLongPathName -#define GetLongPathName error use qxeGetLongPathName or GetLongPathNameA/GetLongPathNameW -#endif -DWORD qxeGetLongPathName (const Extbyte * lpszShortPath, Extbyte * lpszLongPath, DWORD cchBuffer); +#define GetLongPathName error Win98/2K+ only /* Skipping GetEnvironmentStrings because misnamed ANSI version of the function */ diff -r 74353ce403ce -r fba0799e2d79 src/intl-encap-win32.c --- a/src/intl-encap-win32.c Mon Sep 15 15:24:57 2003 +0000 +++ b/src/intl-encap-win32.c Mon Sep 15 20:21:47 2003 +0000 @@ -216,7 +216,7 @@ yes GetBinaryType yes GetShortPathName -yes GetLongPathName +no GetLongPathName Win98/2K+ only skip GetEnvironmentStrings misnamed ANSI version of the function yes FreeEnvironmentStrings yes FormatMessage