Skip to content

Commit

Permalink
Avoid a compilation error of gnulib's test-iconv-h-c++.cc on mingw.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaible committed Apr 6, 2010
1 parent 8ede21c commit a47098b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2010-04-06 Bruno Haible <bruno@clisp.org>

Avoid a compilation error of gnulib's test-iconv-h-c++.cc on mingw.
* include/iconv.h.in: Restrict the extern "C" { ... } scope so that it
doesn't contains #include directives.

2010-03-30 Bruno Haible <bruno@clisp.org>

* README.woe32: Update for Cygwin 1.7.x.
Expand Down
16 changes: 12 additions & 4 deletions include/iconv.h.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1999-2003, 2005-2006, 2008-2009 Free Software Foundation, Inc.
/* Copyright (C) 1999-2003, 2005-2006, 2008-2010 Free Software Foundation, Inc.
This file is part of the GNU LIBICONV Library.

The GNU LIBICONV Library is free software; you can redistribute it
Expand Down Expand Up @@ -89,6 +89,11 @@ extern size_t iconv (iconv_t cd, @ICONV_CONST@ char* * inbuf, size_t *inbyteslef
extern int iconv_close (iconv_t cd);


#ifdef __cplusplus
}
#endif


#ifndef LIBICONV_PLUG

/* Nonstandard extensions. */
Expand All @@ -106,6 +111,10 @@ extern int iconv_close (iconv_t cd);
#include <wchar.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif

/* A type that holds all memory needed by a conversion descriptor.
A pointer to such an object can be used as an iconv_t. */
typedef struct {
Expand Down Expand Up @@ -223,12 +232,11 @@ extern const char * iconv_canonicalize (const char * name);
extern void libiconv_set_relocation_prefix (const char *orig_prefix,
const char *curr_prefix);

#endif


#ifdef __cplusplus
}
#endif

#endif


#endif /* _LIBICONV_H */

0 comments on commit a47098b

Please sign in to comment.