mirror of
				https://gitlab.com/qemu-project/edk2.git
				synced 2025-10-30 07:56:39 +08:00 
			
		
		
		
	 c16e88e301
			
		
	
	c16e88e301
	
	
	
		
			
			Use _MSC_EXTENSIONS instead of _MSC_VER when MSC specific extensions are required such as __declspec(dllexport). CLANGPDB builds do not set _MSC_VER but CLANGPDB builds in Windows and Linux do support use of MSC specific extensions. Add PRM_EXPORT_DESCRIPTOR macro that provides attributes required to make sure the PRM Export Descriptor Structure is not optimized away by the compiler/linker. PRM_EXPORT_API can not be used for this because the attributes for code and data may be different with different tool chains. For GCC/CLANGDWARF tool chains, PRM_EXPORT_DESCRIPTOR sets the 'used' and 'section(.prmexportdescriptor)' attributes and depends on the GCC linker script to make sure the `.prmexportdescriptor` section is preserved. Fix incorrect location of ; in PRM_MODULE_EXPORT() macro that was found by CLANG. Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>