Check _MSC_VER for MSVC specific pragma directives.

This commit is contained in:
Biswapriyo Nath 2021-04-28 18:30:24 +05:30 committed by akallabeth
parent 5d502c9d06
commit 3a1168cbda
4 changed files with 7 additions and 5 deletions

View File

@ -25,7 +25,9 @@
#include "wf_client.h"
#include "wf_floatbar.h"
#include "wf_gdi.h"
#ifdef _MSC_VER
#pragma comment(lib, "Msimg32.lib")
#endif
#define TAG CLIENT_TAG("windows.floatbar")

View File

@ -44,7 +44,7 @@
#define TAG FREERDP_TAG("settings")
#ifdef _WIN32
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4244)
#endif
@ -1112,6 +1112,6 @@ out_fail:
freerdp_settings_free(_settings);
return NULL;
}
#ifdef _WIN32
#ifdef _MSC_VER
#pragma warning(pop)
#endif

View File

@ -663,7 +663,7 @@ BOOL PathIsDirectoryEmptyW(LPCWSTR pszPath)
#else
#ifdef _WIN32
#ifdef _MSC_VER
#pragma comment(lib, "shlwapi.lib")
#endif

View File

@ -406,7 +406,7 @@ typedef trio_longlong_t trio_int64_t;
* Internal Definitions
*/
#ifdef _WIN32
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4244)
#endif
@ -7189,6 +7189,6 @@ TRIO_PUBLIC TRIO_CONST char* trio_strerror TRIO_ARGS1((errorcode), int errorcode
#endif
}
#ifdef _WIN32
#ifdef _MSC_VER
#pragma warning(pop)
#endif