Browse Source

Fix visibility issues when compiling with mingw32.

pull/1/head
Ghislain MARY 12 years ago
parent
commit
ed04a86611
4 changed files with 12 additions and 4 deletions
  1. +10
    -0
      configure.ac
  2. +1
    -1
      include/bcg729/decoder.h
  3. +1
    -1
      include/bcg729/encoder.h
  4. +0
    -2
      src/Makefile.am

+ 10
- 0
configure.ac View File

@ -46,4 +46,14 @@ AC_CONFIG_FILES([
libbcg729.pc
])
case "$target_os" in
*mingw*)
CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0501"
;;
*)
CFLAGS="$CFLAGS -fvisibility=hidden"
;;
esac
AC_OUTPUT

+ 1
- 1
include/bcg729/decoder.h View File

@ -23,7 +23,7 @@
typedef struct bcg729DecoderChannelContextStruct_struct bcg729DecoderChannelContextStruct;
#include <stdint.h>
#ifdef _MSC_VER
#ifdef WIN32
#define BCG729_VISIBILITY
#else
#define BCG729_VISIBILITY __attribute__ ((visibility ("default")))


+ 1
- 1
include/bcg729/encoder.h View File

@ -23,7 +23,7 @@
#include <stdint.h>
typedef struct bcg729EncoderChannelContextStruct_struct bcg729EncoderChannelContextStruct;
#ifdef _MSC_VER
#ifdef WIN32
#define BCG729_VISIBILITY
#else
#define BCG729_VISIBILITY __attribute__ ((visibility ("default")))


+ 0
- 2
src/Makefile.am View File

@ -27,5 +27,3 @@ libbcg729_la_SOURCES= LP2LSPConversion.c \
libbcg729_la_LDFLAGS= -no-undefined
INCLUDES= -I$(top_srcdir)/include
AM_CFLAGS=-fvisibility=hidden

Loading…
Cancel
Save