summaryrefslogtreecommitdiff
path: root/include/mysql.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mysql.h')
-rw-r--r--include/mysql.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/mysql.h b/include/mysql.h
index 7867dea2c31..a82a35efc4b 100644
--- a/include/mysql.h
+++ b/include/mysql.h
@@ -26,11 +26,9 @@
#undef __WIN__
#endif
-#ifndef MYSQL_SERVER
#ifdef __cplusplus
extern "C" {
#endif
-#endif
#ifndef _global_h /* If not standard header */
#include <sys/types.h>
@@ -229,7 +227,7 @@ typedef struct st_mysql_res {
/* Set up and bring down the server; to ensure that applications will
* work when linked against either the standard client library or the
* embedded server library, these functions should be called. */
-void mysql_server_init(int argc, const char **argv, const char **groups);
+int mysql_server_init(int argc, const char **argv, const char **groups);
void mysql_server_end();
/* Set up and bring down a thread; these function should be called
@@ -382,10 +380,8 @@ int STDCALL mysql_drop_db(MYSQL *mysql, const char *DB);
#define HAVE_MYSQL_REAL_CONNECT
-#ifndef MYSQL_SERVER
#ifdef __cplusplus
}
#endif
-#endif
-#endif
+#endif /* _mysql_h */