Skip to content

Commit

Permalink
Suppress 4768 warning from shlobj.h
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkaratarakis committed Oct 3, 2017
1 parent f72cf87 commit e25a31e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions toolsrc/include/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#define NOMINMAX
#define WIN32_LEAN_AND_MEAN

#pragma warning(suppress : 4768)
#include <windows.h>

#include <algorithm>
Expand All @@ -28,7 +28,10 @@
#include <regex>
#include <set>
#include <shellapi.h>
#include <shlobj.h>
#pragma warning(push)
#pragma warning(disable : 4768)
#include <Shlobj.h>
#pragma warning(pop)
#include <stdexcept>
#include <string>
#include <sys/timeb.h>
Expand Down
3 changes: 3 additions & 0 deletions toolsrc/src/vcpkg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
#include "vcpkg_Strings.h"
#include "vcpkg_System.h"
#include "vcpkglib.h"
#pragma warning(push)
#pragma warning(disable : 4768)
#include <Shlobj.h>
#pragma warning(pop)
#include <cassert>
#include <fstream>
#include <memory>
Expand Down

0 comments on commit e25a31e

Please sign in to comment.