1 new commit in XEmacs:
https://bitbucket.org/xemacs/xemacs/commits/d79c7749a101/
Changeset: d79c7749a101
User: kehoea
Date: 2017-11-12 00:09:24+00:00
Summary: Make min(), max() available as macros in lwlib too.
lwlib/ChangeLog addition:
2017-11-12 Aidan Kehoe <kehoea(a)parhasard.net>
* lwlib-internal.h:
Make min(), max() available as macros to lwlib as well as to the
core code. Thank you Mats Lidell and the buildbot.
Affected #: 2 files
diff -r c8b7adfa23c6f68a106755cc970296763c2ed59d -r
d79c7749a1011bfb27c1209ff365758f7e95ae51 lwlib/ChangeLog
--- a/lwlib/ChangeLog
+++ b/lwlib/ChangeLog
@@ -1,3 +1,9 @@
+2017-11-12 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * lwlib-internal.h:
+ Make min(), max() available as macros to lwlib as well as to the
+ core code. Thank you Mats Lidell and the buildbot.
+
2016-12-30 Aidan Kehoe <kehoea(a)parhasard.net>
* lwlib-Xlw.c (xlw_update_one_widget):
diff -r c8b7adfa23c6f68a106755cc970296763c2ed59d -r
d79c7749a1011bfb27c1209ff365758f7e95ae51 lwlib/lwlib-internal.h
--- a/lwlib/lwlib-internal.h
+++ b/lwlib/lwlib-internal.h
@@ -37,6 +37,17 @@
# endif
#endif
+/* Define min() and max(). (Some compilers put them in strange places that
+ won't be referenced by include files used by XEmacs, such as `macros.h'
+ under Solaris.) */
+
+#ifndef min
+# define min(a,b) (((a) <= (b)) ? (a) : (b))
+#endif
+#ifndef max
+# define max(a,b) (((a) > (b)) ? (a) : (b))
+#endif
+
/* This represents a single widget within a widget tree. All the
widgets in a widget tree are chained through the `next' field.
`info' is a back pointer to the widget tree. */
Repository URL:
https://bitbucket.org/xemacs/xemacs/
--
This is a commit notification from
bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.