rtconfig_project.h 1.4 KB

1234567891011121314151617181920212223242526272829303132
  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. #define _CRT_DECLARE_NONSTDC_NAMES 0 /* avoid to conflict with the inherent STDC in VS */
  18. /* disable some warning in MSC */
  19. #pragma warning(disable:4273) /* to ignore: warning C4273: inconsistent dll linkage */
  20. #pragma warning(disable:4312) /* to ignore: warning C4312: 'type cast' : conversion from 'rt_uint32_t' to 'rt_uint32_t *' */
  21. #pragma warning(disable:4311) /* to ignore: warning C4311: 'type cast' : pointer truncation from 'short *__w64 ' to 'long' */
  22. #pragma warning(disable:4996) /* to ignore: warning C4996: The POSIX name for this item is deprecated. */
  23. #pragma warning(disable:4267) /* to ignore: warning C4267: conversion from 'size_t' to 'rt_size_t', possible loss of data */
  24. #pragma warning(disable:4244) /* to ignore: warning C4244: '=' : conversion from '__w64 int' to 'rt_size_t', possible loss of data */
  25. #endif /* end of _MSC_VER */
  26. #endif