mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +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
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
#ifndef __JumpListBuilder_h__
|
||||
#define __JumpListBuilder_h__
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#undef NTDDI_VERSION
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#ifndef nsFilePicker_h__
|
||||
#define nsFilePicker_h__
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <windows.h>
|
||||
|
||||
// For Vista IFileDialog interfaces which aren't exposed
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue