--- dist/examples/examples.h 2017-05-10 12:14:59.000000000 -0400 +++ macports/examples/examples.h 2018-03-03 00:57:16.000000000 -0500 @@ -22,6 +22,22 @@ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +// Connection properties +#ifndef EXAMPLE_DB +# define EXAMPLE_DB "test" +#endif /* EXAMPLE_DB */ +#ifndef EXAMPLE_HOST +# define EXAMPLE_HOST "tcp://127.0.0.1:3306" +#endif /* EXAMPLE_HOST */ +#ifndef EXAMPLE_USER +# define EXAMPLE_USER "root" +#endif /* EXAMPLE_USER */ +#ifndef EXAMPLE_PASS +# define EXAMPLE_PASS "root" +#endif /* EXAMPLE_PASS */ +#ifndef DYNLOAD_MYSQL_LIB +#define DYNLOAD_MYSQL_LIB "/opt/local/lib@DBPORT@/mysql/libmysqlclient.dylib" +#endif /* DYNLOAD_MYSQL_LIB */ #ifndef _EXAMPLES_H @@ -60,12 +76,6 @@ #define __LINE__ "(line number n/a)" #endif -// Connection properties -#define EXAMPLE_DB "test" -#define EXAMPLE_HOST "tcp://127.0.0.1:3306" -#define EXAMPLE_USER "root" -#define EXAMPLE_PASS "root" - // Sample data #define EXAMPLE_NUM_TEST_ROWS 4 struct _test_data {