Enlightenment CVS committal
Author : kwo
Project : e17
Module : libs/imlib2
Dir : e17/libs/imlib2/src/lib
Modified Files:
asm.h common.h image.h
Log Message:
Add option to build with visibility=hidden + associated fixups.
===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/lib/asm.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- asm.h 13 Jan 2007 05:39:06 -0000 1.2
+++ asm.h 9 Apr 2007 12:55:28 -0000 1.3
@@ -9,7 +9,7 @@
# define PR_(sym) __##sym
#endif
-#ifdef USE_HIDDEN_FUNCTION_ATTRIBUTE
+#if defined(__GNUC__) && (__GNUC__ >= 4)
# define HIDDEN_(sym) .hidden PR_(sym)
#else
# define HIDDEN_(sym)
===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/lib/common.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- common.h 9 Apr 2006 08:12:51 -0000 1.2
+++ common.h 9 Apr 2007 12:55:29 -0000 1.3
@@ -15,7 +15,7 @@
#include <sys/types.h>
#endif
-#ifdef USE_HIDDEN_FUNCTION_ATTRIBUTE
+#if defined(__GNUC__) && (__GNUC__ >= 4)
#define __hidden __attribute__((visibility("hidden")))
#else
#define __hidden
===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/lib/image.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- image.h 9 Apr 2006 08:12:51 -0000 1.5
+++ image.h 9 Apr 2007 12:55:29 -0000 1.6
@@ -112,9 +112,10 @@
ImlibLoader *next;
};
-void __imlib_AttachTag(ImlibImage *im, const char *key,
int val, void *data,
- ImlibDataDestructorFunction destructor);
-ImlibImageTag *__imlib_GetTag(ImlibImage *im, const char *key);
+EAPI void __imlib_AttachTag(ImlibImage *im, const char *key,
+ int val, void *data,
+ ImlibDataDestructorFunction
destructor);
+EAPI ImlibImageTag *__imlib_GetTag(ImlibImage *im, const char *key);
__hidden ImlibImageTag *__imlib_RemoveTag(ImlibImage *im, const char *key);
__hidden void __imlib_FreeTag(ImlibImage *im, ImlibImageTag *t);
__hidden void __imlib_FreeAllTags(ImlibImage *im);
@@ -150,7 +151,7 @@
__hidden void __imlib_RescanLoaders(void);
__hidden void __imlib_RemoveAllLoaders(void);
__hidden void __imlib_LoadAllLoaders(void);
-ImlibLoader *__imlib_FindBestLoaderForFile(const char *file, int
for_save);
+EAPI ImlibLoader *__imlib_FindBestLoaderForFile(const char *file, int
for_save);
__hidden ImlibLoader *__imlib_FindBestLoaderForFileFormat(const char
*file, char *format, int for_save);
__hidden void __imlib_SetImageAlphaFlag(ImlibImage *im, char
alpha);
__hidden ImlibImage *__imlib_CreateImage(int w, int h, DATA32 *data);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs