]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CorebootModulePkg: Avoid gcc compile fail caused by unrecognized pragma
authorScott Duplichan <scott@notabs.org>
Fri, 10 Apr 2015 02:41:59 +0000 (02:41 +0000)
committermauricema <mauricema@Edk2>
Fri, 10 Apr 2015 02:41:59 +0000 (02:41 +0000)
Prevent gcc from preprocessing Microsofrt specific  pragma. Otherwise
compile will fail with error: -Werror=unknown-pragma.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Scott Duplichan <scott@notabs.org>
Reviewed-by: Prince Agyeman <prince.agyeman@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17152 6f19259b-4bc3-4df7-8a09-765794883524

CorebootModulePkg/Include/Coreboot.h

index 7bec1f3d6f17765b55fd3cf547916451510dff63..703c034ca913bae8562e2a3f9d584b52892347d3 100644 (file)
@@ -45,7 +45,9 @@
 #ifndef _COREBOOT_PEI_H_INCLUDED_\r
 #define _COREBOOT_PEI_H_INCLUDED_\r
 \r
+#if defined(_MSC_VER)\r
 #pragma warning( disable : 4200 )\r
+#endif\r
 \r
 #define DYN_CBMEM_ALIGN_SIZE (4096)\r
 \r