~kklimonda/ubuntu/natty/glibmm2.4/update

« back to all changes in this revision

Viewing changes to gio/src/error.hg

  • Committer: Bazaar Package Importer
  • Author(s): Deng Xiyue
  • Date: 2008-10-21 22:29:45 UTC
  • mfrom: (1.2.32 upstream)
  • Revision ID: james.westby@ubuntu.com-20081021222945-14plcglhrbjbz3c2
Tags: 2.18.1-1
* New upstream stable release.
* Use POSIX standard regex classes in sed trick in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include <glibmm/interface.h>
21
21
 
 
22
// There have been issues with other libraries defining HOST_NOT_FOUND (e.g.
 
23
// netdb.h).  As a workaround, we added the alternate name HOST_WAS_NOT_FOUND.
 
24
// Portable code should not use HOST_NOT_FOUND.  Undefining it here (and
 
25
// restoring it below) will allow programs to compile even if they include
 
26
// netdb.h.  See Bug #529496
 
27
#ifdef HOST_NOT_FOUND
 
28
#define GIOMM_SAVED_HOST_NOT_FOUND HOST_NOT_FOUND
 
29
#undef HOST_NOT_FOUND
 
30
#endif // HOST_NOT_FOUND
 
31
 
22
32
_DEFS(giomm,gio)
23
33
_PINCLUDE(glibmm/private/interface_p.h)
24
34
 
35
45
 
36
46
} // namespace Gio
37
47
 
 
48
#ifdef GIOMM_SAVED_HOST_NOT_FOUND
 
49
// restore the previously-defined HOST_NOT_FOUND macro
 
50
#define HOST_NOT_FOUND GIOMM_SAVED_HOST_NOT_FOUND
 
51
#undef GIOMM_SAVED_HOST_NOT_FOUND
 
52
#endif // GIOMM_SAVED_HOST_NOT_FOUND