From c0e260d308f2ee97d9a50d5d3f07fe8dc8550cb1 Mon Sep 17 00:00:00 2001 From: dimmus Date: Wed, 6 Dec 2023 20:20:40 +0500 Subject: [PATCH] examples: solve EFL_BETA_API_SUPPORT redefinition warning --- src/examples/ecore/ecore_audio_custom.c | 4 +++- src/examples/ecore/ecore_audio_playback.c | 4 +++- src/examples/ecore/ecore_audio_to_ogg.c | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/examples/ecore/ecore_audio_custom.c b/src/examples/ecore/ecore_audio_custom.c index 05d970c497..7e5b3513df 100644 --- a/src/examples/ecore/ecore_audio_custom.c +++ b/src/examples/ecore/ecore_audio_custom.c @@ -1,6 +1,8 @@ // Compile with: // gcc -o ecore_audio_custom ecore_audio_custom.c `pkg-config --libs --cflags ecore ecore-audio` -#define EFL_BETA_API_SUPPORT +#ifndef EFL_BETA_API_SUPPORT +# define EFL_BETA_API_SUPPORT +#endif #include #include diff --git a/src/examples/ecore/ecore_audio_playback.c b/src/examples/ecore/ecore_audio_playback.c index 79262ffd6e..09a7325d7d 100644 --- a/src/examples/ecore/ecore_audio_playback.c +++ b/src/examples/ecore/ecore_audio_playback.c @@ -1,6 +1,8 @@ // Compile with: // gcc -o ecore_audio_playback ecore_audio_playback.c `pkg-config --libs --cflags ecore eina ecore-audio` -#define EFL_BETA_API_SUPPORT +#ifndef EFL_BETA_API_SUPPORT +# define EFL_BETA_API_SUPPORT +#endif #include #include diff --git a/src/examples/ecore/ecore_audio_to_ogg.c b/src/examples/ecore/ecore_audio_to_ogg.c index a76b727b79..e387fe942a 100644 --- a/src/examples/ecore/ecore_audio_to_ogg.c +++ b/src/examples/ecore/ecore_audio_to_ogg.c @@ -1,6 +1,8 @@ // Compile with: // gcc -o ecore_audio_to_ogg ecore_audio_to_ogg.c `pkg-config --libs --cflags ecore eina ecore-audio` -#define EFL_BETA_API_SUPPORT +#ifndef EFL_BETA_API_SUPPORT +# define EFL_BETA_API_SUPPORT +#endif #include #include