rtconfig_project.h 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. */
  9. #ifndef RTCONFIG_PROJECT_H__
  10. #define RTCONFIG_PROJECT_H__
  11. #define RT_HEAP_SIZE (1024*1024*8)
  12. #if defined(_MSC_VER)
  13. #define NORESOURCE //RT_VESRION in winuser.h
  14. #define _CRT_ERRNO_DEFINED //errno macro redefinition
  15. #define _INC_WTIME_INL//dfs_elm.c time.h conflicts with wtime.inl
  16. #define _INC_TIME_INL //dfs_elm.c time.h conflicts with wtime.inl
  17. /* disable some warning in MSC */
  18. #pragma warning(disable:4273) /* to ignore: warning C4273: inconsistent dll linkage */
  19. #pragma warning(disable:4312) /* to ignore: warning C4312: 'type cast' : conversion from 'rt_uint32_t' to 'rt_uint32_t *' */
  20. #pragma warning(disable:4311) /* to ignore: warning C4311: 'type cast' : pointer truncation from 'short *__w64 ' to 'long' */
  21. #pragma warning(disable:4996) /* to ignore: warning C4996: The POSIX name for this item is deprecated. */
  22. #pragma warning(disable:4267) /* to ignore: warning C4267: conversion from 'size_t' to 'rt_size_t', possible loss of data */
  23. #pragma warning(disable:4244) /* to ignore: warning C4244: '=' : conversion from '__w64 int' to 'rt_size_t', possible loss of data */
  24. #endif /* end of _MSC_VER */
  25. #endif