Add support for compiling under MinGW + fix Windows compiling in general

This commit is contained in:
wuggy 2026-04-17 15:05:11 -07:00
commit a5cf494890
56 changed files with 243 additions and 76 deletions

View file

@ -4,6 +4,7 @@
* 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 <windows.h>
#include <audiopolicy.h>
#include <mmdeviceapi.h>

View file

@ -6,6 +6,8 @@
#ifndef __JumpListBuilder_h__
#define __JumpListBuilder_h__
#include <stdlib.h>
#include <windows.h>
#undef NTDDI_VERSION

View file

@ -4,6 +4,7 @@
* 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 "TaskbarPreview.h"
#include <nsITaskbarPreviewController.h>
#include <windows.h>

View file

@ -4,6 +4,7 @@
* 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 "WinTaskbar.h"
#include "TaskbarPreview.h"
#include <nsITaskbarPreviewController.h>

View file

@ -39,7 +39,7 @@
// Starting with version 10.0.22621.0 of the Windows SDK the AR_STATE enum and
// types are only defined when building for Windows 8 instead of Windows 7.
#if (WDK_NTDDI_VERSION >= 0x0A00000C) && (WINVER < 0x0602)
#if (WDK_NTDDI_VERSION >= 0x0A00000C) && (WINVER < 0x0602) && !defined(MOZ_AR_STATE_DEFINED)
enum tagAR_STATE {
AR_ENABLED = 0x0,
@ -57,6 +57,8 @@ typedef enum tagAR_STATE AR_STATE;
using PAR_STATE = enum tagAR_STATE*;
#define MOZ_AR_STATE_DEFINED 1
#endif // (WDK_NTDDI_VERSION >= 0x0A00000C) && (WINVER < 0x0602)
/**

View file

@ -3,6 +3,7 @@
* 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 <windows.h>
#include <winsdkver.h>
#include "mozwrlbase.h"

View file

@ -7,6 +7,7 @@
#ifndef nsFilePicker_h__
#define nsFilePicker_h__
#include <stdlib.h>
#include <windows.h>
// For Vista IFileDialog interfaces which aren't exposed

View file

@ -42,6 +42,7 @@ typedef enum _AR_STATE
AR_DOCKED = 0x40,
AR_LAPTOP = 0x80
} AR_STATE, *PAR_STATE;
#define MOZ_AR_STATE_DEFINED 1
#endif
class nsLookAndFeel: public nsXPLookAndFeel {