diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-03-14 11:31:45 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-03-14 14:16:25 +0100 |
commit | 2bdadc5274df42738b97045cd01cd63d3651daf9 (patch) | |
tree | c388f9bce8e6c67f8f9555b44b83ff5a8b31d74c | |
parent | d987dba42894aceff106d557b13812092028cc29 (diff) | |
download | sssd-2bdadc5274df42738b97045cd01cd63d3651daf9.tar.gz sssd-2bdadc5274df42738b97045cd01cd63d3651daf9.tar.xz sssd-2bdadc5274df42738b97045cd01cd63d3651daf9.zip |
UTIL: Hide implementation details about unicode libraries.
Header files from glib or unistring are only necessary in implementation module
sss_utf8.c
Reviewed-by: Pavel Reichl <preichl@redhat.com>
-rw-r--r-- | src/util/sss_utf8.c | 10 | ||||
-rw-r--r-- | src/util/sss_utf8.h | 6 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/util/sss_utf8.c b/src/util/sss_utf8.c index 27c5cb60a..695230826 100644 --- a/src/util/sss_utf8.c +++ b/src/util/sss_utf8.c @@ -20,7 +20,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "util/util.h" +#include "config.h" + +#ifdef HAVE_LIBUNISTRING +#include <unistr.h> +#include <unicase.h> +#elif defined(HAVE_GLIB2) +#include <glib.h> +#endif + #include "sss_utf8.h" #ifdef HAVE_LIBUNISTRING diff --git a/src/util/sss_utf8.h b/src/util/sss_utf8.h index b7da76219..95b085f56 100644 --- a/src/util/sss_utf8.h +++ b/src/util/sss_utf8.h @@ -23,12 +23,6 @@ #ifndef SSS_UTF8_H_ #define SSS_UTF8_H_ -#ifdef HAVE_LIBUNISTRING -#include <unistr.h> -#include <unicase.h> -#elif HAVE_GLIB2 -#include <glib.h> -#endif #include "util/util.h" #ifndef ENOMATCH |