~ubuntu-branches/ubuntu/precise/libmtp/precise-proposed

« back to all changes in this revision

Viewing changes to src/unicode.c

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2009-12-14 22:32:10 UTC
  • mto: (16.1.3 sid) (0.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: james.westby@ubuntu.com-20091214223210-vekc5340wzmz54bw
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 * <a href="http://en.wikipedia.org/wiki/UTF-16/UCS-2">UTF-16/UCS-2</a>
11
11
 * and <a href="http://en.wikipedia.org/wiki/UTF-8">UTF-8</a>.
12
12
 *
13
 
 * Copyright (C) 2005-2007 Linus Walleij <triad@df.lth.se>
 
13
 * Copyright (C) 2005-2009 Linus Walleij <triad@df.lth.se>
14
14
 *
15
15
 * This library is free software; you can redistribute it and/or
16
16
 * modify it under the terms of the GNU Lesser General Public
29
29
 *
30
30
 */
31
31
 
 
32
#include <config.h>
32
33
#include <stdlib.h>
33
34
#include <string.h>
34
 
#include <iconv.h>
 
35
#ifdef HAVE_ICONV
 
36
#include "iconv.h"
 
37
#else
 
38
#error "libmtp unicode.c needs fixing to work without iconv()!"
 
39
#endif
35
40
#include "libmtp.h"
36
41
#include "unicode.h"
37
42
#include "util.h"