defs: use noexcept only for C++11 and more

pull/2758/head
Justin Carpentier 2019-11-10 08:23:17 +01:00
parent 595f937ff9
commit 031d3b648e
No known key found for this signature in database
GPG Key ID: C45D22EF408328AD
1 changed files with 5 additions and 1 deletions

View File

@ -306,7 +306,11 @@ static const ai_real ai_epsilon = (ai_real) 0.00001;
#define AI_MAX_ALLOC(type) ((256U * 1024 * 1024) / sizeof(type))
#ifndef _MSC_VER
# define AI_NO_EXCEPT noexcept
# if __cplusplus >= 201103L // C++11
# define AI_NO_EXCEPT noexcept
# else
# define AI_NO_EXCEPT
# endif
#else
# if (_MSC_VER >= 1915 )
# define AI_NO_EXCEPT noexcept