Bug 1114052 - Don't include Windows headers inside a namespace. r=paolo

This commit is contained in:
Jacek Caban 2014-12-20 22:02:45 +01:00
parent 5015a7c40e
commit b431e9ae2e

View File

@ -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,