Commit 09ca556d authored by Kjell Ahlstedt's avatar Kjell Ahlstedt

Disable deprecated API in dependencies if --enable-warnings=fatal

* Disable deprecated API in glib, glibmm and libsigc++ when
building with --enable-warnings=fatal.
* libxml++/validators/ Put #include <glibmm/threads.h> first.
Necessary when G_DISABLE_DEPRECATED is defined.
parent 7e3bafca
......@@ -42,7 +42,8 @@ MM_ARG_WITH_TAGFILE_DOC([glibmm-2.4.tag], [glibmm-2.4])
# Evaluate the --enable-warnings=level option.
[-pedantic -Wall -Wextra -Wno-long-long])
[-pedantic -Wall -Wextra -Wno-long-long],
# Offer the ability to omit some API from the library.
......@@ -4,13 +4,16 @@
* included with libxml++ as the file COPYING.
// Include glibmm/threads.h first. It must be the first file to include glib.h,
// because it temporarily undefines G_DISABLE_DEPRECATED while it includes glib.h.
#include <glibmm/threads.h> // For Glib::Threads::Mutex. Needed until the next API/ABI break.
#include "libxml++/parsers/parser.h"
#include <libxml/parser.h>
#include <memory> //For auto_ptr.
#include <map>
#include <glibmm/threads.h> // For Glib::Threads::Mutex. Needed until the next API/ABI break.
//TODO: See several TODOs in parser.h for changes at the next API/ABI break.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment