mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
68f692de66
commit
1451a8181c
1 changed files with 11 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue