From 0c5e207f52a63a4cc616e9de9f0042ff8fac4178 Mon Sep 17 00:00:00 2001 From: wrowe Date: Mon, 3 Aug 2009 19:28:26 +0000 Subject: Reorder the config into sanity, prefer include/mysql/ structure if found, and *be consistent*. Includes rpluem's patch to maintain load order of these cleaned up includes. It appears my_sys.h is actually not required for my_init(), and it certainly won't compile under Visual C/Win32. So carefully omit it only on platforms where my_sys.h is not found/not usable, and retain the existing unix compilation. Forward ports: 799780, 800402, 800431 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@800505 13f79535-47bb-0310-9956-ffa450edef68 --- dbd/apr_dbd_mysql.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'dbd') diff --git a/dbd/apr_dbd_mysql.c b/dbd/apr_dbd_mysql.c index 95a92477a..482b82a96 100644 --- a/dbd/apr_dbd_mysql.c +++ b/dbd/apr_dbd_mysql.c @@ -15,7 +15,6 @@ */ #include "apu.h" -#define HAVE_MYSQL_MYSQL_H #if APU_HAVE_MYSQL @@ -25,22 +24,24 @@ #include #include -#ifdef HAVE_MY_GLOBAL_H -#include -#elif defined(HAVE_MYSQL_MY_GLOBAL_H) +#if defined(HAVE_MYSQL_MYSQL_H) +#if defined(HAVE_MYSQL_MY_GLOBAL_H) #include +#if defined(HAVE_MYSQL_MY_SYS_H) +#include +#endif #endif -#ifdef HAVE_MY_SYS_H +#include +#include +#else /* !defined(HAVE_MYSQL_MYSQL_H) */ +#if defined(HAVE_MY_GLOBAL_H) +#include +#if defined(HAVE_MY_SYS_H) #include -#elif defined(HAVE_MYSQL_MY_SYS_H) -#include #endif -#ifdef HAVE_MYSQL_H +#endif #include #include -#elif defined(HAVE_MYSQL_MYSQL_H) -#include -#include #endif #include "apr_strings.h" -- cgit v1.2.1