[glibmm] Add SECTION_CC_PRE_INCLUDES section to gmmproc
- From: Daniel Elstner <daniel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glibmm] Add SECTION_CC_PRE_INCLUDES section to gmmproc
- Date: Fri, 21 Aug 2009 12:16:54 +0000 (UTC)
commit d32830662a29bba7575359365f70ea50949e96fb
Author: Daniel Elstner <danielk openismus com>
Date: Fri Aug 21 14:12:40 2009 +0200
Add SECTION_CC_PRE_INCLUDES section to gmmproc
* tools/m4/base.m4: Define new SECTION_CC_PRE_INCLUDES and import
it at the top of the generated source file. This new section can
be used to insert custom code at the beginning of the translation
unit as seen by the compiler.
ChangeLog | 9 +++++++++
tools/m4/base.m4 | 3 +++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f11f8f6..83fb2eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2009-08-21 Daniel Elstner <danielk openismus com>
+ Add SECTION_CC_PRE_INCLUDES section to gmmproc
+
+ * tools/m4/base.m4: Define new SECTION_CC_PRE_INCLUDES and import
+ it at the top of the generated source file. This new section can
+ be used to insert custom code at the beginning of the translation
+ unit as seen by the compiler.
+
+2009-08-21 Daniel Elstner <danielk openismus com>
+
Use mm-common macro for --disable-deprecated-api
* configure.ac: Replace GLIBMM_ARG_ENABLE_API_DEPRECATED() with
diff --git a/tools/m4/base.m4 b/tools/m4/base.m4
index 8aa2d90..e6782a4 100644
--- a/tools/m4/base.m4
+++ b/tools/m4/base.m4
@@ -163,6 +163,7 @@ _NEW_SECTION(SECTION_HEADER1) dnl header up to the first namespace
_NEW_SECTION(SECTION_HEADER2) dnl header after the first namespace
_NEW_SECTION(SECTION_HEADER3) dnl header after the first namespace
_NEW_SECTION(SECTION_PHEADER) dnl private header
+_NEW_SECTION(SECTION_CC_PRE_INCLUDES) dnl section just before the includes
_NEW_SECTION(SECTION_CC_INCLUDES) dnl section for additional includes
_NEW_SECTION(SECTION_SRC_CUSTOM) dnl user supplied implementation
_NEW_SECTION(SECTION_ANONYMOUS_NAMESPACE) dnl built implementation in anonymous namespace
@@ -302,6 +303,8 @@ _DEPRECATE_IFDEF_CLASS_END
// Generated by gtkmmproc -- DO NOT MODIFY!
+_IMPORT(SECTION_CC_PRE_INCLUDES)
+
_DEPRECATE_IFDEF_CLASS_START
#include <__MODULE__/__FILE__.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]