add __has_extension

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39151 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-11-04 17:55:05 +00:00
parent 68f692de66
commit 1451a8181c

View file

@ -276,6 +276,17 @@ typedef struct {
# define __has_builtin(x) 0
#endif
/*
* __has_extension has slightly different semantics from __has_feature.
* It evaluates to true if the feature is supported by by clang for the
* current compilation unit (language and -f switches), regardless of
* whether it is part of the language standard or just a (non-standard)
* extension.
*/
#ifndef __has_extension
# define __has_extension(x) __has_feature(x)
#endif
#if defined(__WIN32__)
#define BOOL WinBOOL
#include <w32api.h>