chore: [gn] only define WIN32_LEAN_AND_MEAN if not already defined (#13430)
Chromium's GN build already defines `WIN32_LEAN_AND_MEAN` and `NOMINMAX` (see [build/config/win/BUILD.gn](dbe762aaff/build/config/win/BUILD.gn (515)
) in chrome), so we don't need to define them ourselves. Left as #ifndefs so as not to break the gyp build.
This commit is contained in:
parent
78bc1081fd
commit
418c4e170c
3 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include "brightray/browser/win/win32_desktop_notifications/desktop_notification_controller.h"
|
||||
#include <windowsx.h>
|
||||
#include <algorithm>
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
#include "brightray/browser/win/win32_desktop_notifications/toast.h"
|
||||
#include <uxtheme.h>
|
||||
#include <windowsx.h>
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
#include "brightray/browser/win/win32_notification.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue