summaryrefslogtreecommitdiff
path: root/msvc_recommended_pragmas.h
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-29 10:35:26 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-29 10:35:26 +0900
commit5ae663c280fa741754b78a4d442c1b5a33e502de (patch)
tree1ed23b28f45a28cd112bffd1a81b713c369b927e /msvc_recommended_pragmas.h
parent8f331da86bcb848ebee6f930317fdb1553c56851 (diff)
downloadglib-5ae663c280fa741754b78a4d442c1b5a33e502de.tar.gz
glib-5ae663c280fa741754b78a4d442c1b5a33e502de.tar.bz2
glib-5ae663c280fa741754b78a4d442c1b5a33e502de.zip
Imported Upstream version 2.69.0upstream/2.69.0
Diffstat (limited to 'msvc_recommended_pragmas.h')
-rw-r--r--msvc_recommended_pragmas.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/msvc_recommended_pragmas.h b/msvc_recommended_pragmas.h
index e70698712..051a02ae4 100644
--- a/msvc_recommended_pragmas.h
+++ b/msvc_recommended_pragmas.h
@@ -1,10 +1,11 @@
#ifndef _MSC_VER
-#pragma error "This header is for Microsoft VC only."
+#pragma error "This header is for Microsoft VC or clang-cl only."
#endif /* _MSC_VER */
/* Make MSVC more pedantic, this is a recommended pragma list
* from _Win32_Programming_ by Rector and Newcomer.
*/
+#ifndef __clang__
#pragma warning(error:4002) /* too many actual parameters for macro */
#pragma warning(error:4003) /* not enough actual parameters for macro */
#pragma warning(1:4010) /* single-line comment contains line-continuation character */
@@ -33,6 +34,7 @@
#pragma warning(disable:4305) /* No truncation from int to char warnings */
#pragma warning(error:4819) /* The file contains a character that cannot be represented in the current code page */
+#endif /* __clang__ */
/* work around Microsoft's premature attempt to deprecate the C-Library */
#define _CRT_SECURE_NO_WARNINGS