summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/backends/alsa/alsa.c2
-rw-r--r--src/lib/backends/pulseaudio/pulse.c4
-rw-r--r--src/lib/emix-module.h20
3 files changed, 23 insertions, 3 deletions
diff --git a/src/lib/backends/alsa/alsa.c b/src/lib/backends/alsa/alsa.c
index 8ea974d..fb2d068 100644
--- a/src/lib/backends/alsa/alsa.c
+++ b/src/lib/backends/alsa/alsa.c
@@ -1,4 +1,4 @@
1#include <emix.h> 1#include <emix-module.h>
2#include <alsa/asoundlib.h> 2#include <alsa/asoundlib.h>
3 3
4#define ERR(...) EINA_LOG_ERR(__VA_ARGS__) 4#define ERR(...) EINA_LOG_ERR(__VA_ARGS__)
diff --git a/src/lib/backends/pulseaudio/pulse.c b/src/lib/backends/pulseaudio/pulse.c
index 91efe7f..b15a447 100644
--- a/src/lib/backends/pulseaudio/pulse.c
+++ b/src/lib/backends/pulseaudio/pulse.c
@@ -1,10 +1,10 @@
1#include <emix.h>
2
3#include <Eina.h> 1#include <Eina.h>
4#include <Ecore.h> 2#include <Ecore.h>
5 3
6#include <pulse/pulseaudio.h> 4#include <pulse/pulseaudio.h>
7 5
6#include <emix-module.h>
7
8#define ERR(...) EINA_LOG_ERR(__VA_ARGS__) 8#define ERR(...) EINA_LOG_ERR(__VA_ARGS__)
9#define DBG(...) EINA_LOG_DBG(__VA_ARGS__) 9#define DBG(...) EINA_LOG_DBG(__VA_ARGS__)
10#define WRN(...) EINA_LOG_WARN(__VA_ARGS__) 10#define WRN(...) EINA_LOG_WARN(__VA_ARGS__)
diff --git a/src/lib/emix-module.h b/src/lib/emix-module.h
new file mode 100644
index 0000000..36381bb
--- /dev/null
+++ b/src/lib/emix-module.h
@@ -0,0 +1,20 @@
1#ifndef EMIX_MODULE_H
2#define EMIX_MODULE_H
3
4#include <emix.h>
5
6#ifdef EAPI
7# undef EAPI
8#endif
9
10#ifdef __GNUC__
11# if __GNUC__ >= 4
12# define EAPI __attribute__ ((visibility("default")))
13# else
14# define EAPI
15# endif
16#else
17# define EAPI
18#endif
19
20#endif /* EMIX_MODULE_H */