summaryrefslogtreecommitdiff
path: root/legacy/evas
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-12-27 17:17:31 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-12-27 17:17:31 +0000
commit7554f8ee360ae75ace0a46ca079de7e5a28dba2b (patch)
treeac5a69b333e40cc14c366a7226c1bd05687bec1b /legacy/evas
parentcdebf436cf3353ab658a37d9e468f8bd0de6a19c (diff)
actually make symbol hiding work!
SVN revision: 19314
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/Evas.h8
-rw-r--r--legacy/evas/src/lib/include/evas_common.h10
-rw-r--r--legacy/evas/src/lib/main.c1
3 files changed, 17 insertions, 2 deletions
diff --git a/legacy/evas/src/lib/Evas.h b/legacy/evas/src/lib/Evas.h
index cf314b823d..97042faf0b 100644
--- a/legacy/evas/src/lib/Evas.h
+++ b/legacy/evas/src/lib/Evas.h
@@ -11,8 +11,12 @@
11# define EAPI __declspec(dllimport) 11# define EAPI __declspec(dllimport)
12# endif 12# endif
13#else 13#else
14# ifdef GCC_HASCLASSVISIBILITY 14# ifdef __GNUC__
15# define EAPI __attribute__ ((visibility("default"))) 15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
16# else 20# else
17# define EAPI 21# define EAPI
18# endif 22# endif
diff --git a/legacy/evas/src/lib/include/evas_common.h b/legacy/evas/src/lib/include/evas_common.h
index ad7d666b43..d2eb36509b 100644
--- a/legacy/evas/src/lib/include/evas_common.h
+++ b/legacy/evas/src/lib/include/evas_common.h
@@ -1,6 +1,10 @@
1#ifndef EVAS_COMMON_H 1#ifndef EVAS_COMMON_H
2#define EVAS_COMMON_H 2#define EVAS_COMMON_H
3 3
4#include <stdio.h>
5#include <stdlib.h>
6#include <unistd.h>
7#include <string.h>
4#include "Evas.h" 8#include "Evas.h"
5#include "config.h" 9#include "config.h"
6 10
@@ -8,6 +12,12 @@
8 12
9#include "evas_options.h" 13#include "evas_options.h"
10 14
15#ifdef __GNUC__
16# if __GNUC__ >= 4
17# pragma GCC visibility push(hidden)
18# endif
19#endif
20
11/*****************************************************************************/ 21/*****************************************************************************/
12 22
13/* use exact rects for updates not tiles */ 23/* use exact rects for updates not tiles */
diff --git a/legacy/evas/src/lib/main.c b/legacy/evas/src/lib/main.c
index 711b41f39c..2212225cb1 100644
--- a/legacy/evas/src/lib/main.c
+++ b/legacy/evas/src/lib/main.c
@@ -1,3 +1,4 @@
1#include "Evas.h"
1#include "evas_common.h" 2#include "evas_common.h"
2#include "evas_private.h" 3#include "evas_private.h"
3 4