forked from Mirrors/opensbi
		
	platform: Fix compile error caused by standard includes
Avoid using standard includes namely stdint.h, string.h, stdlib.h, etc. All standard include except stddef.h give compilation error due to differences in RISC-V toolchain configuration. Typically, the compilation error is related to "gnu-stubs-lp64.h". This patch fixes compile error caused by standard includes by providing substitutes of definetions provided by standard includes wherever required. Signed-off-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
		@@ -52,11 +52,13 @@
 | 
			
		||||
 *     EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include <sbi/sbi_types.h>
 | 
			
		||||
#include <plat/string.h>
 | 
			
		||||
 | 
			
		||||
#define INT_MAX		((int)(~0U >> 1))
 | 
			
		||||
#define UINT_MAX	((unsigned int)~0U)
 | 
			
		||||
 | 
			
		||||
#include <stddef.h>
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
#include <limits.h>
 | 
			
		||||
 | 
			
		||||
#ifdef __CHECKER__
 | 
			
		||||
#define FDT_FORCE __attribute__((force))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user