File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 7171
7272#ifdef _NO_ASYNCRTIMP
7373#define _ASYNCRTIMP
74+ #define _ASYNCRTIMP_TYPEINFO
7475#else // ^^^ _NO_ASYNCRTIMP ^^^ // vvv !_NO_ASYNCRTIMP vvv
7576#ifdef _ASYNCRT_EXPORT
7677#define _ASYNCRTIMP __declspec(dllexport)
7778#else // ^^^ _ASYNCRT_EXPORT ^^^ // vvv !_ASYNCRT_EXPORT vvv
7879#define _ASYNCRTIMP __declspec(dllimport)
7980#endif // _ASYNCRT_EXPORT
81+
82+ #if defined(_WIN32 )
83+ #define _ASYNCRTIMP_TYPEINFO
84+ #else // ^^^ _WIN32 ^^^ // vvv !_WIN32 vvv
85+ #define _ASYNCRTIMP_TYPEINFO __attribute__((visibility("default")))
86+ #endif // _WIN32
87+
8088#endif // _NO_ASYNCRTIMP
8189
8290#ifdef CASABLANCA_DEPRECATION_NO_WARNINGS
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ class header_names
187187// / <summary>
188188// / Represents an HTTP error. This class holds an error message and an optional error code.
189189// / </summary>
190- class http_exception : public std ::exception
190+ class _ASYNCRTIMP_TYPEINFO http_exception : public std::exception
191191{
192192public:
193193 // / <summary>
You can’t perform that action at this time.
0 commit comments