]> Savannah Git Hosting - gnulib.git/commitdiff
list-c++, [o]map-c++, [o]set-c++: Fix conflict with 'free-posix' module.
authorBruno Haible <bruno@clisp.org>
Wed, 30 Dec 2020 01:12:33 +0000 (02:12 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 30 Dec 2020 01:13:42 +0000 (02:13 +0100)
* lib/gl_list.hh: Include <stdlib.h>.
* lib/gl_map.hh: Likewise.
* lib/gl_omap.hh: Likewise.
* lib/gl_set.hh: Likewise.
* lib/gl_oset.hh: Likewise.

ChangeLog
lib/gl_list.hh
lib/gl_map.hh
lib/gl_omap.hh
lib/gl_oset.hh
lib/gl_set.hh

index 0ef300f0b02cf8b98508c53f54c9022993321325..cca14c910415e17f376d0325565567bcc3efa69d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2020-12-29  Bruno Haible  <bruno@clisp.org>
+
+       list-c++, [o]map-c++, [o]set-c++: Fix conflict with 'free-posix' module.
+       * lib/gl_list.hh: Include <stdlib.h>.
+       * lib/gl_map.hh: Likewise.
+       * lib/gl_omap.hh: Likewise.
+       * lib/gl_set.hh: Likewise.
+       * lib/gl_oset.hh: Likewise.
+
 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
 
        canonicalize: fix ptrdiff_t overflow bug
index 8b0ccad1ba35a33f9d07a3459f115354790476be..85e06b95815af9b1f9bf1f51a068728ad4e6dc05 100644 (file)
@@ -23,6 +23,8 @@
 #include "gl_sublist.h"
 #include "gl_xsublist.h"
 
+#include <stdlib.h>     /* because Gnulib's <stdlib.h> may '#define free ...' */
+
 /* gl_List is a C++ wrapper around the gl_list data type.
    Its element type is 'ELTYPE *'.
 
index 082694fe6b75c08c614c4bbfe4c8ad859c176010..8e946d6153174108c2a0041bb99a926ca57cbad0 100644 (file)
@@ -21,6 +21,8 @@
 #include "gl_map.h"
 #include "gl_xmap.h"
 
+#include <stdlib.h>     /* because Gnulib's <stdlib.h> may '#define free ...' */
+
 /* gl_Map is a C++ wrapper around the gl_map data type.
    Its key type is 'KEYTYPE *'.  Its value type is 'VALUETYPE *'.
 
index 903befb55d93cd16274894915984621223d8a3bd..953c9c011eab6cc13b834ecb1af15efa9544c519 100644 (file)
@@ -21,6 +21,8 @@
 #include "gl_omap.h"
 #include "gl_xomap.h"
 
+#include <stdlib.h>     /* because Gnulib's <stdlib.h> may '#define free ...' */
+
 /* gl_OMap is a C++ wrapper around the gl_omap data type.
    Its key type is 'KEYTYPE *'.  Its value type is 'VALUETYPE *'.
 
index 8a7edc9c7af56bb7ef3e4e62ff1d64c0b04d657f..5150e7922600fe03ed24f2d8723cf3e64baf9e85 100644 (file)
@@ -21,6 +21,8 @@
 #include "gl_oset.h"
 #include "gl_xoset.h"
 
+#include <stdlib.h>     /* because Gnulib's <stdlib.h> may '#define free ...' */
+
 /* gl_OSet is a C++ wrapper around the gl_oset data type.
    Its element type is 'ELTYPE *'.
 
index 3b64bc5b1abaeb4ba4ff402b95c52b22c6cb6d08..67b4a23ac493dca34567574179c61100467ce5bf 100644 (file)
@@ -21,6 +21,8 @@
 #include "gl_set.h"
 #include "gl_xset.h"
 
+#include <stdlib.h>     /* because Gnulib's <stdlib.h> may '#define free ...' */
+
 /* gl_Set is a C++ wrapper around the gl_set data type.
    Its element type is 'ELTYPE *'.