cxx: Add beta define to Evas.hh

This is probably temporary as well, but it's necessary to make examples
compile (with rectangle).
This commit is contained in:
Jean-Philippe Andre 2017-11-06 14:23:57 +09:00
parent 5f5325ea33
commit 4f98b54915
1 changed files with 19 additions and 5 deletions

View File

@ -1,9 +1,23 @@
#ifndef EFL_EVAS_HH
#define EFL_EVAS_HH
#ifdef EFL_BETA_API_SUPPORT
#ifndef EVAS_HH
#define EVAS_HH
#if defined(EVAS_H)
#error "Do not include Evas C API headers before including Evas.hh"
#endif
#ifndef EFL_BETA_API_SUPPORT
#define EFL_BETA_API_SUPPORT
#endif
#ifndef EFL_EO_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Efl.hh>
extern "C" {
#include "Evas.h"
}
#include "Evas.eo.hh"
#endif
#endif