File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,12 @@ class FlagRegister {
188
188
return strm.str ();
189
189
}
190
190
191
- static fst::FstOnceType register_init_; // ensures only called once
192
- static fst::Mutex* register_lock_; // multithreading lock
193
- static FlagRegister<T> *register_;
191
+ OPENFSTDLL static fst::FstOnceType register_init_; // ensures only called once
192
+ OPENFSTDLL static fst::Mutex* register_lock_; // multithreading lock
193
+ OPENFSTDLL static FlagRegister<T> *register_;
194
194
};
195
195
196
+ #ifdef OPENFSTEXPORT
196
197
template <class T >
197
198
fst::FstOnceType FlagRegister<T>::register_init_ = fst::FST_ONCE_INIT;
198
199
@@ -201,7 +202,7 @@ fst::Mutex *FlagRegister<T>::register_lock_ = 0;
201
202
202
203
template <class T >
203
204
FlagRegister<T> *FlagRegister<T>::register_ = 0 ;
204
-
205
+ # endif
205
206
206
207
template <typename T>
207
208
class FlagRegisterer {
You can’t perform that action at this time.
0 commit comments