mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1114052 - Don't include Windows headers inside a namespace. r=paolo
This commit is contained in:
parent
5015a7c40e
commit
b431e9ae2e
@ -12,6 +12,11 @@
|
||||
#include "plbase64.h"
|
||||
#include "prio.h"
|
||||
|
||||
#ifdef XP_WIN
|
||||
#include <windows.h>
|
||||
#include <wincrypt.h>
|
||||
#endif
|
||||
|
||||
// The length of guids that are used by the download manager
|
||||
#define GUID_LENGTH 12
|
||||
|
||||
@ -69,13 +74,6 @@ Base64urlEncode(const uint8_t* aBytes,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
// Included here because windows.h conflicts with the use of mozIStorageError
|
||||
// above.
|
||||
#include <windows.h>
|
||||
#include <wincrypt.h>
|
||||
#endif
|
||||
|
||||
static
|
||||
nsresult
|
||||
GenerateRandomBytes(uint32_t aSize,
|
||||
|
Loading…
Reference in New Issue
Block a user