rtconfig_project.h 1.2 KB

12345678910111213141516171819202122232425
  1. #ifndef RTCONFIG_PROJECT_H__
  2. #define RTCONFIG_PROJECT_H__
  3. #define RT_HEAP_SIZE (1024*1024*8)
  4. #if defined(_MSC_VER)
  5. #define NORESOURCE //RT_VESRION in winuser.h
  6. #define _CRT_ERRNO_DEFINED //errno macro redefinition
  7. #define _INC_WTIME_INL//dfs_elm.c time.h conflicts with wtime.inl
  8. #define _INC_TIME_INL //dfs_elm.c time.h conflicts with wtime.inl
  9. /* disable some warning in MSC */
  10. #pragma warning(disable:4273) /* to ignore: warning C4273: inconsistent dll linkage */
  11. #pragma warning(disable:4312) /* to ignore: warning C4312: 'type cast' : conversion from 'rt_uint32_t' to 'rt_uint32_t *' */
  12. #pragma warning(disable:4311) /* to ignore: warning C4311: 'type cast' : pointer truncation from 'short *__w64 ' to 'long' */
  13. #pragma warning(disable:4996) /* to ignore: warning C4996: The POSIX name for this item is deprecated. */
  14. #pragma warning(disable:4267) /* to ignore: warning C4267: conversion from 'size_t' to 'rt_size_t', possible loss of data */
  15. #pragma warning(disable:4244) /* to ignore: warning C4244: '=' : conversion from '__w64 int' to 'rt_size_t', possible loss of data */
  16. #elif defined(__GNUC__)
  17. #define RT_USING_NOLIBC
  18. #endif /* end of _MSC_VER */
  19. #endif