git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48059
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if defined(__GNUC__) && __GNUC__ < 4
error this gcc is too old;
#endif
#if defined(__GNUC__) && __GNUC__ < 4
error this gcc is too old;
#endif
+
+ /* visibility only makes sense for ELF shared libs: */
+ #if !defined(__ELF__) && !defined(__APPLE__)
+ error this platform has no visibility;
+ #endif
+
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
extern __attribute__((__visibility__("default"))) int exportedvar;
extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
extern __attribute__((__visibility__("default"))) int exportedvar;
extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
-# From configure.in Id: configure.in 47919 2007-08-07 01:38:18Z VZ .
+# From configure.in Id: configure.in 47942 2007-08-07 22:29:07Z VZ .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
#
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
#
error this gcc is too old;
#endif
error this gcc is too old;
#endif
+ /* visibility only makes sense for ELF shared libs: */
+ #if !defined(__ELF__) && !defined(__APPLE__)
+ error this platform has no visibility;
+ #endif
+
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
extern __attribute__((__visibility__("default"))) int exportedvar;
extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
extern __attribute__((__visibility__("default"))) int exportedvar;
extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
#ifndef _WX_DLIMPEXP_H_
#define _WX_DLIMPEXP_H_
#ifndef _WX_DLIMPEXP_H_
#define _WX_DLIMPEXP_H_
-#if defined(__WINDOWS__)
+#if defined(HAVE_VISIBILITY)
+# define WXEXPORT __attribute__ ((visibility("default")))
+# define WXIMPORT __attribute__ ((visibility("default")))
+#elif defined(__WINDOWS__)
/*
__declspec works in BC++ 5 and later, Watcom C++ 11.0 and later as well
as VC++ and gcc
/*
__declspec works in BC++ 5 and later, Watcom C++ 11.0 and later as well
as VC++ and gcc
#elif defined(__CYGWIN__)
# define WXEXPORT __declspec(dllexport)
# define WXIMPORT __declspec(dllimport)
#elif defined(__CYGWIN__)
# define WXEXPORT __declspec(dllexport)
# define WXIMPORT __declspec(dllimport)
-#elif defined(HAVE_VISIBILITY)
-# define WXEXPORT __attribute__ ((visibility("default")))
-# define WXIMPORT __attribute__ ((visibility("default")))
#endif
/* for other platforms/compilers we don't anything */
#endif
/* for other platforms/compilers we don't anything */