summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Elstner <danielk@openismus.com>2009-08-21 14:12:40 +0200
committerDaniel Elstner <danielk@openismus.com>2009-08-21 14:12:40 +0200
commitd32830662a29bba7575359365f70ea50949e96fb (patch)
treeebfd0550b3d2d50e8fcf0600c7f12d6f68ef2b4e
parentba85103d8353c267a7fc66ab303d8f370ccc2dbc (diff)
downloadglibmm-d32830662a29bba7575359365f70ea50949e96fb.tar.gz
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.
-rw-r--r--ChangeLog9
-rw-r--r--tools/m4/base.m43
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f11f8f6a..83fb2eb7 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 8aa2d90e..e6782a40 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>