Commit 5891cb0b authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vdef: Centralize __has_feature(...) fallback

parent 0e7fe4a9
...@@ -45,10 +45,6 @@ ...@@ -45,10 +45,6 @@
#include "vav.h" #include "vav.h"
#include "vcli_serve.h" #include "vcli_serve.h"
#if !defined(__has_feature)
#define __has_feature(x) 0
#endif
struct plist { struct plist {
unsigned magic; unsigned magic;
#define PLIST_MAGIC 0xbfc3ea16 #define PLIST_MAGIC 0xbfc3ea16
......
...@@ -79,6 +79,10 @@ ...@@ -79,6 +79,10 @@
*(fdp) = -1; \ *(fdp) = -1; \
} while (0) } while (0)
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#ifndef __GNUC_PREREQ__ #ifndef __GNUC_PREREQ__
# if defined __GNUC__ && defined __GNUC_MINOR__ # if defined __GNUC__ && defined __GNUC_MINOR__
# define __GNUC_PREREQ__(maj, min) \ # define __GNUC_PREREQ__(maj, min) \
......
...@@ -48,10 +48,6 @@ ...@@ -48,10 +48,6 @@
#include "vas.h" #include "vas.h"
#include "vbh.h" #include "vbh.h"
#if !defined(__has_feature)
#define __has_feature(x) 0
#endif
/* Parameters --------------------------------------------------------*/ /* Parameters --------------------------------------------------------*/
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment