Skip to content

Commit 117df6b

Browse files
committed
More windows static linking fixes
1 parent 42d85fe commit 117df6b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cppconn/exception.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ namespace sql
6969
#pragma warning(push)
7070
#pragma warning(disable: 4275)
7171
#endif
72-
class CPPCONN_PUBLIC_FUNC SQLException : public std::runtime_error
72+
class SQLException : public std::runtime_error
7373
{
7474
#ifdef _WIN32
7575
#pragma warning(pop)
@@ -115,32 +115,32 @@ class CPPCONN_PUBLIC_FUNC SQLException : public std::runtime_error
115115
MEMORY_ALLOC_OPERATORS(SQLException)
116116
};
117117

118-
struct CPPCONN_PUBLIC_FUNC MethodNotImplementedException : public SQLException
118+
struct MethodNotImplementedException : public SQLException
119119
{
120120
MethodNotImplementedException(const MethodNotImplementedException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
121121
MethodNotImplementedException(const std::string& reason) : SQLException(reason, "", 0) {}
122122
};
123123

124-
struct CPPCONN_PUBLIC_FUNC InvalidArgumentException : public SQLException
124+
struct InvalidArgumentException : public SQLException
125125
{
126126
InvalidArgumentException(const InvalidArgumentException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
127127
InvalidArgumentException(const std::string& reason) : SQLException(reason, "", 0) {}
128128
};
129129

130-
struct CPPCONN_PUBLIC_FUNC InvalidInstanceException : public SQLException
130+
struct InvalidInstanceException : public SQLException
131131
{
132132
InvalidInstanceException(const InvalidInstanceException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
133133
InvalidInstanceException(const std::string& reason) : SQLException(reason, "", 0) {}
134134
};
135135

136136

137-
struct CPPCONN_PUBLIC_FUNC NonScrollableException : public SQLException
137+
struct NonScrollableException : public SQLException
138138
{
139139
NonScrollableException(const NonScrollableException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
140140
NonScrollableException(const std::string& reason) : SQLException(reason, "", 0) {}
141141
};
142142

143-
struct CPPCONN_PUBLIC_FUNC SQLUnsupportedOptionException : public SQLException
143+
struct SQLUnsupportedOptionException : public SQLException
144144
{
145145
SQLUnsupportedOptionException(const SQLUnsupportedOptionException& e, const std::string conn_option) :
146146
SQLException(e.what(), e.sql_state, e.errNo),

0 commit comments

Comments
 (0)