_DEFAULT_SOURCE flag added, and clang check for IsTriviallyCopyable macro

fix clang ver check for 4.0 +

using clang macro __has_feature

__GLIBCXX__ check added

fix __has_feature
This commit is contained in:
dhust
2016-06-19 18:32:19 -03:00
parent c8d0eb103a
commit 19fed720ff
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ endmacro()
# Enabling all warnings in MSVC spams too much
if(NOT MSVC)
add_definitions(-Wall)
add_definitions(-D_DEFAULT_SOURCE)
# TODO: would like these but they produce overwhelming amounts of warnings
#check_and_add_flag(EXTRA -Wextra)
#check_and_add_flag(MISSING_FIELD_INITIALIZERS -Wmissing-field-initializers)