diff options
Diffstat (limited to 'base/logging.cc')
-rw-r--r-- | base/logging.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/base/logging.cc b/base/logging.cc index ef1a746..f0c6217 100644 --- a/base/logging.cc +++ b/base/logging.cc @@ -409,6 +409,20 @@ void SetLogMessageHandler(LogMessageHandlerFunction handler) { log_message_handler = handler; } +// MSVC doesn't like complex extern templates and DLLs. +#if !defined(COMPILER_MSVC) +// Explicit instantiations for commonly used comparisons. +template std::string* MakeCheckOpString<int, int>( + const int&, const int&, const char* names); +template std::string* MakeCheckOpString<unsigned long, unsigned long>( + const unsigned long&, const unsigned long&, const char* names); +template std::string* MakeCheckOpString<unsigned long, unsigned int>( + const unsigned long&, const unsigned int&, const char* names); +template std::string* MakeCheckOpString<unsigned int, unsigned long>( + const unsigned int&, const unsigned long&, const char* names); +template std::string* MakeCheckOpString<std::string, std::string>( + const std::string&, const std::string&, const char* name); +#endif // Displays a message box to the user with the error message in it. // Used for fatal messages, where we close the app simultaneously. |