shithub: aacdec

Download patch

ref: bfab0b0a72a8b1c233b09fe37afa1263f241ca03
parent: ae68cd1f2bf299003b5d6efabaf285f7ae9208a3
author: knik <knik>
date: Fri Mar 2 10:29:47 EST 2012

Set appropriate symbol visibility attributes.

--- a/include/neaacdec.h
+++ b/include/neaacdec.h
@@ -25,7 +25,7 @@
 ** Commercial non-GPL licensing of this software is possible.
 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
 **
-** $Id: neaacdec.h,v 1.13 2009/01/26 23:51:15 menno Exp $
+** $Id: neaacdec.h,v 1.14 2012/03/02 15:29:47 knik Exp $
 **/
 
 #ifndef __NEAACDEC_H__
@@ -63,6 +63,10 @@
   #ifndef NEAACDECAPI
     #define NEAACDECAPI __cdecl
   #endif
+#elif defined(__GNUC__) && __GNUC__ >= 4
+  #ifndef NEAACDECAPI
+    #define NEAACDECAPI __attribute__((visibility("default")))
+  #endif
 #else
   #ifndef NEAACDECAPI
     #define NEAACDECAPI
@@ -198,7 +202,7 @@
     unsigned char ps;
 } NeAACDecFrameInfo;
 
-char* NEAACDECAPI NeAACDecGetErrorMessage(unsigned char errcode);
+char NEAACDECAPI *NeAACDecGetErrorMessage(unsigned char errcode);
 
 unsigned long NEAACDECAPI NeAACDecGetCapabilities(void);
 
@@ -231,12 +235,12 @@
 
 void NEAACDECAPI NeAACDecClose(NeAACDecHandle hDecoder);
 
-void* NEAACDECAPI NeAACDecDecode(NeAACDecHandle hDecoder,
+void NEAACDECAPI *NeAACDecDecode(NeAACDecHandle hDecoder,
                                  NeAACDecFrameInfo *hInfo,
                                  unsigned char *buffer,
                                  unsigned long buffer_size);
 
-void* NEAACDECAPI NeAACDecDecode2(NeAACDecHandle hDecoder,
+void NEAACDECAPI *NeAACDecDecode2(NeAACDecHandle hDecoder,
                                   NeAACDecFrameInfo *hInfo,
                                   unsigned char *buffer,
                                   unsigned long buffer_size,
--- a/libfaad/Makefile.am
+++ b/libfaad/Makefile.am
@@ -1,11 +1,12 @@
 lib_LTLIBRARIES = libfaad.la
 
-AM_CFLAGS	= -iquote $(top_srcdir)/include
+INCLUDES	= -iquote $(top_srcdir)/include
 include_HEADERS = $(top_srcdir)/include/faad.h \
 		  $(top_srcdir)/include/neaacdec.h
 
 libfaad_la_LDFLAGS = -version-info 2:0:0
 libfaad_la_LIBADD = -lm
+libfaad_la_CFLAGS = -fvisibility=hidden
 
 libfaad_la_SOURCES = bits.c cfft.c decoder.c drc.c \
 		     drm_dec.c error.c filtbank.c \