Include windows.h first

This commit is contained in:
Kevin Sawicki 2016-08-26 15:43:40 -07:00
parent 6285500cdc
commit 3dd5628ded
6 changed files with 12 additions and 6 deletions

View file

@ -7,10 +7,11 @@
#include <stdlib.h>
#if defined(OS_WIN)
#include <windows.h> // windows.h must be included first
#include <shellapi.h>
#include <shellscalingapi.h>
#include <tchar.h>
#include <windows.h>
#include "atom/app/atom_main_delegate.h"
#include "atom/common/crash_reporter/win/crash_service_main.h"

View file

@ -4,11 +4,12 @@
#include "atom/browser/browser.h"
#include <windows.h> // windows.h must be included first
#include <atlbase.h>
#include <propkey.h>
#include <shlobj.h>
#include <shobjidl.h>
#include <windows.h>
#include "atom/common/atom_version.h"
#include "atom/common/native_mate_converters/string16_converter.h"

View file

@ -4,10 +4,11 @@
#include "atom/browser/ui/file_dialog.h"
#include <windows.h> // windows.h must be included first
#include <atlbase.h>
#include <commdlg.h>
#include <shlobj.h>
#include <windows.h>
#include "atom/browser/native_window_views.h"
#include "atom/browser/unresponsive_suppressor.h"

View file

@ -4,8 +4,9 @@
#include "atom/browser/ui/message_box.h"
#include <windows.h> // windows.h must be included first
#include <commctrl.h>
#include <windows.h>
#include <map>
#include <vector>

View file

@ -5,8 +5,9 @@
#ifndef ATOM_BROWSER_UI_WIN_NOTIFY_ICON_H_
#define ATOM_BROWSER_UI_WIN_NOTIFY_ICON_H_
#include <windows.h> // windows.h must be included first
#include <shellapi.h>
#include <windows.h>
#include <string>

View file

@ -4,13 +4,14 @@
#include "atom/common/platform_util.h"
#include <windows.h> // windows.h must be included first
#include <atlbase.h>
#include <comdef.h>
#include <commdlg.h>
#include <dwmapi.h>
#include <shellapi.h>
#include <shlobj.h>
#include <windows.h>
#include "base/bind.h"
#include "base/bind_helpers.h"