From 1ebdb2e521ca0cbd7aeebd1c89b8a5cf6a4cc322 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Fri, 1 Mar 2013 23:53:11 +0000 Subject: Export libwireshark symbols using WS_DLL_PUBLIC define Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992 --- wsutil/wsgetopt.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'wsutil/wsgetopt.h') diff --git a/wsutil/wsgetopt.h b/wsutil/wsgetopt.h index eaebe65a96..41054d1cc9 100644 --- a/wsutil/wsgetopt.h +++ b/wsutil/wsgetopt.h @@ -151,8 +151,7 @@ struct option /* Many other libraries have conflicting prototypes for getopt, with differences in the consts, in stdlib.h. To avoid compilation errors, only prototype getopt for the GNU C library. */ -WS_DLL_PUBLIC -extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) +WS_DLL_PUBLIC int getopt (int ___argc, char *const *___argv, const char *__shortopts) __THROW; # if defined __need_getopt && defined __USE_POSIX2 \ @@ -171,8 +170,7 @@ extern int __posix_getopt (int ___argc, char *const *___argv, # endif # endif #else /* not __GNU_LIBRARY__ */ -WS_DLL_PUBLIC -extern int getopt (int ___argc, char *const *___argv, +WS_DLL_PUBLIC int getopt (int ___argc, char *const *___argv, const char *__shortopts); #endif /* __GNU_LIBRARY__ */ -- cgit v1.2.1