~ubuntu-branches/ubuntu/vivid/rtfilter/vivid

« back to all changes in this revision

Viewing changes to m4/api-exports.m4

  • Committer: Package Import Robot
  • Author(s): Nicolas Bourdaud
  • Date: 2011-12-01 12:09:30 UTC
  • Revision ID: package-import@ubuntu.com-20111201120930-lmia8ytlwmif9yta
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
AC_DEFUN([AC_DEF_API_EXPORT_ATTRS],
 
3
[AC_REQUIRE([gl_VISIBILITY])
 
4
AC_REQUIRE([AC_CANONICAL_HOST])
 
5
case $host in
 
6
        *win32* | *mingw32* | *cygwin* | *windows*)
 
7
                os_support=win32
 
8
                ;;
 
9
        *)
 
10
                os_support=other
 
11
                ;;
 
12
esac
 
13
if test $HAVE_VISIBILITY = 1 -a $os_support !=  "win32"; then
 
14
     AC_DEFINE(LOCAL_FN, [__attribute__ ((visibility ("hidden")))],
 
15
        [attribute of the non-exported symbols])
 
16
     AC_DEFINE(API_EXPORTED, [__attribute__ ((visibility ("default")))],
 
17
        [attribute of the symbols exported in the API])
 
18
else
 
19
     AC_DEFINE(LOCAL_FN, [], [attribute of the non-exported symbols])
 
20
     AC_DEFINE(API_EXPORTED, [], [attribute of the symbols exported in the API])
 
21
fi
 
22
])
 
23