mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 14:57:32 +09:00
Add support for compiling under MinGW + fix Windows compiling in general
This commit is contained in:
parent
e3a45c193c
commit
a5cf494890
56 changed files with 243 additions and 76 deletions
|
|
@ -3,11 +3,12 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <winsock2.h>
|
||||
#include <ws2ipdef.h>
|
||||
#include <iphlpapi.h>
|
||||
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "mozilla/UniquePtrExtensions.h"
|
||||
|
||||
#include "NetworkInfoServiceImpl.h"
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ namespace net {
|
|||
nsresult
|
||||
DoListAddresses(AddrMapType& aAddrMap)
|
||||
{
|
||||
UniquePtr<MIB_IPADDRTABLE> ipAddrTable;
|
||||
UniqueFreePtr<MIB_IPADDRTABLE> ipAddrTable;
|
||||
DWORD size = sizeof(MIB_IPADDRTABLE);
|
||||
|
||||
ipAddrTable.reset((MIB_IPADDRTABLE*) malloc(size));
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#if defined(XP_MACOSX) || defined(XP_LINUX)
|
||||
#include <unistd.h>
|
||||
#elif defined(XP_WIN)
|
||||
#include <stdlib.h>
|
||||
#include <winsock2.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue