MySQL++

Check-in [80288634c8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:No longer #including mysql_version.h ahead of mysql.h in lib/common.h. It causes a warning in newer C API libraries, and we didn't really need to do it anyway.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:80288634c899608012d1a8f2f7e7517fa0570b3009771fcfc4a56d2d9197734d
User & Date: tangent 2017-11-23 00:34:48
Context
2017-11-23
00:45
If the C API library is in one of the linker's default paths and the first directory the mysql_loc macro searched for the library doesn't exist, it would use that in the -L flag since the link succeeded with that first try. Some linkers (e.g. current macOS) then complain about a bogus -L flag, even though the link succeeds. We now skip the test for directories that don't exist, so that we exit that loop in such cases with one of the bog standard directories like /usr/lib, which exists everywhere. check-in: f2533e5ac5 user: tangent tags: trunk
00:34
No longer #including mysql_version.h ahead of mysql.h in lib/common.h. It causes a warning in newer C API libraries, and we didn't really need to do it anyway. check-in: 80288634c8 user: tangent tags: trunk
2017-09-08
18:29
Removed config.h.in. It's generated by autoheader. check-in: 9f0c045c5c user: tangent tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to lib/common.h.

126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
	// Make DLL stuff a no-op on this platform.
	#define MYSQLPP_EXPORT

	// Assume POSIX path separator
	#define MYSQLPP_PATH_SEPARATOR '/'
#endif

#if defined(MYSQLPP_MYSQL_HEADERS_BURIED)
#	include <mysql/mysql_version.h>
#else
#	include <mysql_version.h>
#endif

namespace mysqlpp {

/// \brief Alias for 'true', to make code requesting exceptions more
/// readable.
const bool use_exceptions = true;

/// \brief Used to disambiguate overloads of equal_list() in SSQLSes.







<
<
<
<
<
<







126
127
128
129
130
131
132






133
134
135
136
137
138
139
	// Make DLL stuff a no-op on this platform.
	#define MYSQLPP_EXPORT

	// Assume POSIX path separator
	#define MYSQLPP_PATH_SEPARATOR '/'
#endif







namespace mysqlpp {

/// \brief Alias for 'true', to make code requesting exceptions more
/// readable.
const bool use_exceptions = true;

/// \brief Used to disambiguate overloads of equal_list() in SSQLSes.