]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: rename bool argument to avoid stdbool clash
authorMike Frysinger <vapier@gentoo.org>
Mon, 15 Mar 2010 07:14:25 +0000 (07:14 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 15 Mar 2010 07:14:25 +0000 (07:14 +0000)
Including stdbool.h before hw-properties.h results in a build error due
to the hw_add_boolean_property function having an argument named "bool"
in its prototype.  The source file has already be renamed to not use
this ("boolean" instead), so match the header to the source.

sim/common/ChangeLog
sim/common/hw-properties.h

index 6494f3cff8158f1187378e2585549c6d14cf47f6..b3b1de76f79b79cf4a169e7034233fe763a0cc6f 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-15  Mike Frysinger  <vapier@gentoo.org>
+
+       * hw-properties.h (hw_add_boolean_property): Rename "bool" to
+       "boolean".
+
 2010-02-04  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-model.c: Include sim-model.h
index 61dbf7764450294b30a06caf7337c897ef6af230..7891cacdc09205aec14c025581129383fb985de2 100644 (file)
@@ -120,7 +120,7 @@ const struct hw_property *hw_find_array_property
 void hw_add_boolean_property
 (struct hw *me,
  const char *property,
- int bool);
+ int boolean);
 
 int hw_find_boolean_property
 (struct hw *me,