2021-03-20 22:39:00 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
*/
|
|
|
|
|
2017-12-13 20:38:56 +08:00
|
|
|
#ifndef RTCONFIG_PROJECT_H__
|
|
|
|
#define RTCONFIG_PROJECT_H__
|
|
|
|
|
2017-12-14 10:16:31 +08:00
|
|
|
#define RT_HEAP_SIZE (1024*1024*8)
|
2017-12-13 20:38:56 +08:00
|
|
|
|
|
|
|
#if defined(_MSC_VER)
|
2022-01-06 05:43:44 +08:00
|
|
|
#define NORESOURCE /* RT_VESRION in winuser.h */
|
|
|
|
#define _CRT_ERRNO_DEFINED /* errno macro redefinition */
|
|
|
|
#define _INC_WTIME_INL /* dfs_elm.c time.h conflicts with wtime.inl */
|
|
|
|
#define _INC_TIME_INL /* dfs_elm.c time.h conflicts with wtime.inl */
|
|
|
|
#define _CRT_DECLARE_NONSTDC_NAMES 0 /* avoid to conflict with the inherent STDC in VS */
|
2017-12-13 20:38:56 +08:00
|
|
|
|
|
|
|
/* disable some warning in MSC */
|
2021-03-20 22:39:00 +08:00
|
|
|
#pragma warning(disable:4273) /* to ignore: warning C4273: inconsistent dll linkage */
|
2017-12-13 20:38:56 +08:00
|
|
|
#pragma warning(disable:4312) /* to ignore: warning C4312: 'type cast' : conversion from 'rt_uint32_t' to 'rt_uint32_t *' */
|
|
|
|
#pragma warning(disable:4311) /* to ignore: warning C4311: 'type cast' : pointer truncation from 'short *__w64 ' to 'long' */
|
|
|
|
#pragma warning(disable:4996) /* to ignore: warning C4996: The POSIX name for this item is deprecated. */
|
|
|
|
#pragma warning(disable:4267) /* to ignore: warning C4267: conversion from 'size_t' to 'rt_size_t', possible loss of data */
|
|
|
|
#pragma warning(disable:4244) /* to ignore: warning C4244: '=' : conversion from '__w64 int' to 'rt_size_t', possible loss of data */
|
|
|
|
|
|
|
|
#endif /* end of _MSC_VER */
|
|
|
|
|
|
|
|
#endif
|