--- a/examples/examples.h 2012-08-16 12:15:30.000000000 -0700 +++ b/examples/examples.h 2012-08-23 10:05:54.000000000 -0700 @@ -23,10 +23,25 @@ */ +// 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/mysql55/mysql/libmysqlclient_r.dylib" +#endif /* DYNLOAD_MYSQL_LIB */ #ifndef _EXAMPLES_H #define _EXAMPLES_H - /* __FUNCTION__/__func__ is not portable. We do not promise that our example definition covers each and every compiler. @@ -57,15 +72,9 @@ works for you or you have to find your own. */ #ifndef __LINE__ - #define __LINE__ "(line number n/a)" +#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 {