mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 16:22:53 +00:00
Bug 508760 - Remove MSVC6 support from the tree; (Cv1a) xpcom/io/*.cpp; r=doug.turner
This commit is contained in:
parent
53cd9afdef
commit
a24e0c321d
@ -53,12 +53,10 @@
|
||||
#include <string.h>
|
||||
#include <direct.h>
|
||||
|
||||
// These are not defined by VC6.
|
||||
#ifndef CSIDL_LOCAL_APPDATA
|
||||
#define CSIDL_LOCAL_APPDATA 0x001C
|
||||
#endif
|
||||
#ifndef CSIDL_PROGRAM_FILES
|
||||
#define CSIDL_PROGRAM_FILES 0x0026
|
||||
#ifdef WINCE
|
||||
// CSIDL_LOCAL_APPDATA is not defined on WinCE:
|
||||
// fall back to CSIDL_APPDATA.
|
||||
#define CSIDL_LOCAL_APPDATA CSIDL_APPDATA
|
||||
#endif
|
||||
|
||||
#elif defined(XP_OS2)
|
||||
|
@ -312,16 +312,6 @@ static nsresult ConvertWinError(DWORD winErr)
|
||||
return rv;
|
||||
}
|
||||
|
||||
// definition of INVALID_SET_FILE_POINTER from VC.NET header files
|
||||
// it doesn't appear to be defined by VC6
|
||||
#ifndef INVALID_SET_FILE_POINTER
|
||||
# define INVALID_SET_FILE_POINTER ((DWORD)-1)
|
||||
#endif
|
||||
// same goes for INVALID_FILE_ATTRIBUTES
|
||||
#ifndef INVALID_FILE_ATTRIBUTES
|
||||
# define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
|
||||
#endif
|
||||
|
||||
// as suggested in the MSDN documentation on SetFilePointer
|
||||
static __int64
|
||||
MyFileSeek64(HANDLE aHandle, __int64 aDistance, DWORD aMoveMethod)
|
||||
|
Loading…
x
Reference in New Issue
Block a user