[glib] Add a 'these are private' note for the version macros



commit 4995ef4dd7959dde44c62014a06c52d41acd8908
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 27 00:32:13 2012 -0500

    Add a 'these are private' note for the version macros

 glib/gversionmacros.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/glib/gversionmacros.h b/glib/gversionmacros.h
index 2d42497..95b0e7f 100644
--- a/glib/gversionmacros.h
+++ b/glib/gversionmacros.h
@@ -145,6 +145,12 @@
 #error "GLIB_VERSION_MIN_REQUIRED must be >= GLIB_VERSION_2_26"
 #endif
 
+/* These macros are used to mark deprecated functions in GLib headers,
+ * and thus have to be exposed in installed headers. But please
+ * do *not* use them in other projects. Instead, use G_DEPRECATED
+ * or define your own wrappers around it.
+ */
+
 /* XXX: Every new stable minor release should add a set of macros here */
 
 #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_26



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]