|
35 | 35 | #if (defined __WIN32__) || (defined _WIN32)
|
36 | 36 | # ifdef BUILD_REGEX_DLL
|
37 | 37 | # define REGEX_DLL_IMPEXP __DLL_EXPORT__
|
| 38 | +# define REGEX_VARIABLE_IMPEXP __DLL_EXPORT__ |
38 | 39 | # elif defined(REGEX_STATIC)
|
39 | 40 | # define REGEX_DLL_IMPEXP
|
| 41 | +# define REGEX_VARIABLE_IMPEXP |
40 | 42 | # elif defined (USE_REGEX_DLL)
|
41 | 43 | # define REGEX_DLL_IMPEXP __DLL_IMPORT__
|
| 44 | +# define REGEX_VARIABLE_IMPEXP __DLL_IMPORT__ |
42 | 45 | # elif defined (USE_REGEX_STATIC)
|
43 | 46 | # define REGEX_DLL_IMPEXP
|
| 47 | +# define REGEX_VARIABLE_IMPEXP extern |
44 | 48 | # else /* assume USE_REGEX_DLL */
|
45 | 49 | # define REGEX_DLL_IMPEXP __DLL_IMPORT__
|
| 50 | +# define REGEX_VARIABLE_IMPEXP __DLL_IMPORT__ |
46 | 51 | # endif
|
47 | 52 | #else /* __WIN32__ */
|
48 | 53 | # define REGEX_DLL_IMPEXP
|
| 54 | +# define REGEX_VARIABLE_IMPEXP |
49 | 55 | #endif
|
50 | 56 |
|
51 | 57 | /* Allow the use in C++ code. */
|
@@ -202,7 +208,7 @@ typedef unsigned long int reg_syntax_t;
|
202 | 208 | some interfaces). When a regexp is compiled, the syntax used is
|
203 | 209 | stored in the pattern buffer, so changing this does not affect
|
204 | 210 | already-compiled regexps. */
|
205 |
| -REGEX_DLL_IMPEXP reg_syntax_t re_syntax_options; |
| 211 | +REGEX_VARIABLE_IMPEXP reg_syntax_t re_syntax_options; |
206 | 212 |
|
207 | 213 | /* Define combinations of the above bits for the standard possibilities.
|
208 | 214 | (The [[[ comments delimit what gets put into the Texinfo file, so
|
|
0 commit comments