diff options
author | Balint Reczey <balint@balintreczey.hu> | 2013-02-28 14:09:46 +0000 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2013-02-28 14:09:46 +0000 |
commit | 45c2884f1bbd9c06f7ba3091d968fcb6649a5f56 (patch) | |
tree | bb66eea36a288f1ab5e33468ee9bf2989339b2aa /wsutil/wsgetopt.h | |
parent | 018ba4ea6584f63aa5c4b741c2e6f6fedc609ad2 (diff) |
Export libwsutil symbols using WS_DLL_PUBLIC define
This change replaces *.def and *.sym file usage following the
guideline at http://gcc.gnu.org/wiki/Visibility
svn path=/trunk/; revision=47938
Diffstat (limited to 'wsutil/wsgetopt.h')
-rw-r--r-- | wsutil/wsgetopt.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/wsutil/wsgetopt.h b/wsutil/wsgetopt.h index c65fd7c05b..eaebe65a96 100644 --- a/wsutil/wsgetopt.h +++ b/wsutil/wsgetopt.h @@ -24,6 +24,8 @@ # define _GETOPT_H 1 #endif +#include "ws_symbol_export.h" + /* If __GNU_LIBRARY__ is not already defined, either we are being used standalone, or this is the first header included in the source file. If we are being used with glibc, we need to include <features.h>, but @@ -56,7 +58,7 @@ extern "C" { Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ -WS_VAR_IMPORT char *optarg; +WS_DLL_PUBLIC char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller @@ -70,16 +72,16 @@ WS_VAR_IMPORT char *optarg; Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ -WS_VAR_IMPORT int optind; +WS_DLL_PUBLIC int optind; /* Callers store zero here to inhibit the error message `getopt' prints for unrecognized options. */ -WS_VAR_IMPORT int opterr; +WS_DLL_PUBLIC int opterr; /* Set to an option character which was unrecognized. */ -WS_VAR_IMPORT int optopt; +WS_DLL_PUBLIC int optopt; #ifndef __need_getopt /* Describe the long-named options requested by the application. @@ -149,6 +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) __THROW; @@ -168,6 +171,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, const char *__shortopts); #endif /* __GNU_LIBRARY__ */ |