Try to fix clang and gcc warnings problems

This commit is contained in:
Milo Yip
2015-12-18 19:04:09 +08:00
parent 74c8dcfd57
commit 17f2ca6913
3 changed files with 8 additions and 17 deletions

View File

@@ -19,8 +19,10 @@
#ifndef __STDC_CONSTANT_MACROS
#ifdef __clang__
#pragma GCC diagnostic push
#if __has_warning("-Wreserved-id-macro")
#pragma GCC diagnostic ignored "-Wreserved-id-macro"
#endif
#endif
# define __STDC_CONSTANT_MACROS 1 // required by C++ standard