Skip to content

Commit 092e04f

Browse files
committed
Update flags.h
Add OPENFSTDLL to flags.h to fix problem with command line parsing
1 parent 83d6e46 commit 092e04f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/include/fst/flags.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,12 @@ class FlagRegister {
188188
return strm.str();
189189
}
190190

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_;
194194
};
195195

196+
#ifdef OPENFSTEXPORT
196197
template <class T>
197198
fst::FstOnceType FlagRegister<T>::register_init_ = fst::FST_ONCE_INIT;
198199

@@ -201,7 +202,7 @@ fst::Mutex *FlagRegister<T>::register_lock_ = 0;
201202

202203
template <class T>
203204
FlagRegister<T> *FlagRegister<T>::register_ = 0;
204-
205+
#endif
205206

206207
template <typename T>
207208
class FlagRegisterer {

0 commit comments

Comments
 (0)