examples: fix warnings regarding multiple defines

compiling them stand alone still defines the correct definitions
This commit is contained in:
Marcel Hollerbach 2018-12-29 13:10:14 +01:00
parent d7f43c6018
commit 3be5126b35
6 changed files with 33 additions and 14 deletions

View File

@ -21,8 +21,9 @@
*/ */
#include <stdlib.h> #include <stdlib.h>
#ifndef _GNU_SOURCE
#define _GNU_SOURCE # define _GNU_SOURCE
#endif
#include <signal.h> #include <signal.h>
#include "Eldbus.h" #include "Eldbus.h"

View File

@ -1,8 +1,12 @@
//Compile with: //Compile with:
// gcc -o emotion_basic_example emotion_basic_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eo` // gcc -o emotion_basic_example emotion_basic_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eo`
#define EFL_BETA_API_SUPPORT #ifndef EFL_EO_API_SUPPORT
#define EFL_EO_API_SUPPORT # define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif
#include <Eo.h> #include <Eo.h>
#include <Ecore.h> #include <Ecore.h>

View File

@ -1,8 +1,11 @@
//Compile with: //Compile with:
// gcc -o emotion_border_example emotion_border_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eina eo` // gcc -o emotion_border_example emotion_border_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eina eo`
#ifndef EFL_EO_API_SUPPORT
#define EFL_EO_API_SUPPORT # define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT #endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif
#include <Ecore.h> #include <Ecore.h>
#include <Ecore_Evas.h> #include <Ecore_Evas.h>

View File

@ -1,8 +1,11 @@
//Compile with: //Compile with:
// gcc -o emotion_generic_example emotion_generic_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eina eo` // gcc -o emotion_generic_example emotion_generic_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eina eo`
#ifndef EFL_EO_API_SUPPORT
#define EFL_EO_API_SUPPORT # define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT #endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif
#include <Ecore.h> #include <Ecore.h>
#include <Ecore_Evas.h> #include <Ecore_Evas.h>

View File

@ -1,8 +1,12 @@
//Compile with: //Compile with:
// gcc -o emotion_generic_subtitle_example emotion_generic_subtitle_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eo` // gcc -o emotion_generic_subtitle_example emotion_generic_subtitle_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eo`
#define EFL_EO_API_SUPPORT #ifndef EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT # define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif
#include <Ecore.h> #include <Ecore.h>
#include <Ecore_Evas.h> #include <Ecore_Evas.h>

View File

@ -1,8 +1,12 @@
//Compile with: //Compile with:
// gcc -o emotion_signals_example emotion_signals_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eo` // gcc -o emotion_signals_example emotion_signals_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eo`
#define EFL_EO_API_SUPPORT #ifndef EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT # define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif
#include <Ecore.h> #include <Ecore.h>
#include <Ecore_Evas.h> #include <Ecore_Evas.h>